Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix some comments #50

Merged
merged 1 commit into from
Mar 8, 2024
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
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
Loading