Skip to content

Commit

Permalink
fix some comments
Browse files Browse the repository at this point in the history
Signed-off-by: battmdpkq <[email protected]>
  • Loading branch information
battmdpkq committed Mar 8, 2024
1 parent f9fa645 commit c7e697d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Developers: [Getting started](https://www.secondstate.io/articles/getting-starte

[Function input and return values](nodejs/functions/README.md)

[Passing and return values of arbitary types from Node.js to Rust](nodejs/json_io/README.md)
[Passing and return values of arbitrary types from Node.js to Rust](nodejs/json_io/README.md)

[Calling Node.js functions from Rust](nodejs/nodejs_example/README.md)

Expand Down
2 changes: 1 addition & 1 deletion faas/mtcnn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Temporarily downgrade npm

The following installation will require that npm is downgraded to `6.14.9`. There is [an npm cli issue](https://github.com/npm/cli/issues/1865) which prevents us from using the latest npm for this particular build from source task.

Because of the complexity of dependency management, please install aptitude because it provides a way to automatically resolve depencency conflicts.
Because of the complexity of dependency management, please install aptitude because it provides a way to automatically resolve dependency conflicts.

```bash
sudo apt install aptitude
Expand Down
2 changes: 1 addition & 1 deletion faas/poster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ Run the following commland to see the tested result.
cargo run
```

If everything goes well, follow the aboving instrcutions to publish your web application.
If everything goes well, follow the aboving instructions to publish your web application.
4 changes: 2 additions & 2 deletions faas/search-bytes/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ pub fn search_bytes(haystack: &[u8], needle: &[u8]) -> String {
#[wasm_bindgen]
pub fn search_bytes_single_input(byte_array: &[u8]) -> String {
// Parse the byte array to fetch the first 10 bytes as a literal number and remove the leading zero
// The cost of having 10 bytes to store the size (and the leading zero to ensure that one byte never exceeds 255) is negligable
// when compared with the dissadvantage of only being able to store up to 255 bytes per byte array and/or having to manage multidimensional arrays etc.
// The cost of having 10 bytes to store the size (and the leading zero to ensure that one byte never exceeds 255) is negligible
// when compared with the disadvantage of only being able to store up to 255 bytes per byte array and/or having to manage multidimensional arrays etc.
let mut number_of_bytes_str = "".to_string();
for i in 0..10 {
number_of_bytes_str.push_str(&byte_array[i].to_string());
Expand Down

0 comments on commit c7e697d

Please sign in to comment.