diff --git a/documentation/aleo/02_hello.md b/documentation/aleo/02_hello.md index 66b794f42..29db5aada 100644 --- a/documentation/aleo/02_hello.md +++ b/documentation/aleo/02_hello.md @@ -292,7 +292,7 @@ function transfer_amount: ``` First, we define our own record data type called `token`, that has the required parameter `owner` and a user-defined parameter called `amount`, representing the amount of tokens we have. -This `transfer_amount` function receives 3 input parameters (`sender` record, `receiver` record and `amount`) and stores them in 3 registers (`r0`, `r1` and `r2`). After that, it computes the final balance for both of them and stores it in `r3` and `r4` (using **sub** and **add** instructions to compute the subtraction and addition respectively). With those final amounts, it creates the output records for sender and receiver, storing them in `r5` and `r6` . Finally, both records are sent out of the function with the **output** instruction. +This `transfer_amount` function receives 3 input parameters (`sender` record, `receiver` record and `amount`) and stores them in 3 registers (`r0`, `r1` and `r2`). After that, it computes the final balance for both of them and stores it in `r3` and `r4` (using **sub** and **add** instructions to compute the subtraction and addition respectively). With those final amounts, it creates the output records for sender and receiver, storing them in `r5` and `r6`. Finally, both records are sent out of the function with the **output** instruction. To run this function, the first parameter is the input record of the program. The format of this parameter is the same as for struct types: diff --git a/documentation/aleo/03_language.md b/documentation/aleo/03_language.md index f89a94ab4..3cc44686d 100644 --- a/documentation/aleo/03_language.md +++ b/documentation/aleo/03_language.md @@ -643,7 +643,7 @@ finalize run_test: #### self.signer -The `self.signer` command returns the user address that orginated the transition. +The `self.signer` command returns the user address that originated the transition. This can be useful for managing access control to a program. In the above [example](#finalize), the `transfer_public_to_private` function decrements the balance of the sender publicly using `self.signer`. diff --git a/documentation/leo/03_language.md b/documentation/leo/03_language.md index 6825fe1d9..d5db03f7b 100644 --- a/documentation/leo/03_language.md +++ b/documentation/leo/03_language.md @@ -52,7 +52,7 @@ Higher bit length integers generate more constraints in the circuit, which can s #### A Note on Leo Integers -Leo will not default to an integer type. The definition of a integer **must** include an explicit type. +Leo will not default to an integer type. The definition of an integer **must** include an explicit type. **Type casting is supported as of Leo v1.8.2** ```leo diff --git a/documentation/leo/04_operators.md b/documentation/leo/04_operators.md index d2aefa6e0..5ab686b67 100644 --- a/documentation/leo/04_operators.md +++ b/documentation/leo/04_operators.md @@ -1321,7 +1321,7 @@ let g: group = group::GEN; // the group generator Returns the generator of the algebraic group that the `group` type consists of. The compilation of Leo is based on an elliptic curve, whose points form a group, -and on a specified point on that curve, which generarates a subgroup, whose elements form the type `group`. +and on a specified point on that curve, which generates a subgroup, whose elements form the type `group`. This is a constant, not a function. Thus, it takes no inputs, and just returns an output. @@ -2311,4 +2311,4 @@ Calculates a SHA3_512 hash from an input in `first`, storing the hash in `destin | `Struct` | `Address`, `Field`, `Group`, `Scalar`, `I8`, `I16`, `I32`,`I64`,`I128`, `U8`, `U16`, `U32`, `U64`, `U128` | [Back to Top](#table-of-standard-operators) -*** \ No newline at end of file +*** diff --git a/documentation/leo/07_resources.md b/documentation/leo/07_resources.md index c3951934c..1c3fd09cf 100644 --- a/documentation/leo/07_resources.md +++ b/documentation/leo/07_resources.md @@ -213,7 +213,7 @@ To build Leo from source you will need the following tools: - Cargo - Rusty Hook install via `cargo install rusty-hook`. - Clippy - - Via rustup, if you didn't do the default rustup install `rustup componenet add clippy`. + - Via rustup, if you didn't do the default rustup install `rustup component add clippy`. ### Formatting @@ -236,4 +236,4 @@ Then when running the test command, make sure you have the environment variable [The `grammars` repository](https://github.com/AleoHQ/grammars) contains a file [`leo.abnf`](https://github.com/AleoHQ/grammars/blob/master/leo.abnf) that has the Leo grammar rules in the ABNF format. If your changes affect a grammar rule, we may ask you to modify it in that `.abnf` file. -We appreciate your hard work! \ No newline at end of file +We appreciate your hard work! diff --git a/documentation/sdk/typescript/00_sdk_overview.md b/documentation/sdk/typescript/00_sdk_overview.md index 598df7b6d..5dd614c00 100644 --- a/documentation/sdk/typescript/00_sdk_overview.md +++ b/documentation/sdk/typescript/00_sdk_overview.md @@ -203,7 +203,7 @@ graph LR ā¯—WebAssembly must be initialized before any SDK functions can be called. Aleo programs are made zero knowledge through the usage of `ZkSnarks`. The Rust code behind Aleo programs and the ZkSnarks -that make them zero knowledge are hosted in the [snarkVM Repostiory](https://github.com/AleoHQ/SnarkVM). The Aleo SDK +that make them zero knowledge are hosted in the [snarkVM Repository](https://github.com/AleoHQ/SnarkVM). The Aleo SDK compiles this code to WebAssembly and creates JavaScript bindings, enabling Aleo programs to run directly in the browser. Before any logic within the SDK is run within the browser however, the WebAssembly module the SDK contains must be diff --git a/documentation/testnet/getting_started/04_developer_toolkit.md b/documentation/testnet/getting_started/04_developer_toolkit.md index 88ed31ef0..dcebacbab 100644 --- a/documentation/testnet/getting_started/04_developer_toolkit.md +++ b/documentation/testnet/getting_started/04_developer_toolkit.md @@ -65,7 +65,7 @@ Open a new terminal window and type `leo --help` to confirm that Leo is installe `leo example $NAME` -- Continue in your exsiting terminal window and type `leo example`. You should see the following output: +- Continue in your existing terminal window and type `leo example`. You should see the following output: ``` Create a new Leo example package in a new directory