Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/typos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Check for typos

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
typos-check:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v6.0.2
- name: Run typos checker
uses: crate-ci/typos@master
with:
args: README.md USAGE.md BUILD.md
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[default.extend-words]
nextstd = "nextstd"
stdio = "stdio"
NextStd = "NextStd"
sso = "sso"
SSO = "SSO"
toml = "toml"
ns = "ns"
Iinclude = "Iinclude"

[default]
extend-ignore-identifiers-re = [
"^ns_.*$",
]

[files]
extend-exclude = ["CHANGELOG.md"]
2 changes: 1 addition & 1 deletion crates/ns_io/src/input.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::io::{self};
use std::ffi::{c_int, c_float,c_double};

// Helper function to read a line from stdin safetly
// Helper function to read a line from stdin safely
fn read_line_buffer() -> String {
let mut buffer = String::new();

Expand Down
4 changes: 2 additions & 2 deletions crates/ns_io/src/print.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub extern "C" fn ns_print_double(val: f64) {
#[unsafe(no_mangle)]
// If the C string is not null terminaltes '\0' , the function will keep on reading memory until
// the program crashes (Segfault)
// The below supression is to prevent that
// The below suppression is to prevent that
#[allow(clippy::not_unsafe_ptr_arg_deref)]
pub extern "C" fn ns_print_string(ptr: *const c_char) {
// Never Dereference a NULL pointer
Expand Down Expand Up @@ -82,7 +82,7 @@ pub extern "C" fn ns_println_double(val: f64) {
#[unsafe(no_mangle)]
// If the C string is not null terminaltes '\0' , the function will keep on reading memory until
// the program crashes (Segfault)
// The below supression is to prevent that
// The below suppression is to prevent that
#[allow(clippy::not_unsafe_ptr_arg_deref)]
pub extern "C" fn ns_println_string(ptr: *const c_char) {
// Never Dereference a NULL pointer
Expand Down
Loading