Skip to content

Commit

Permalink
Merge pull request #316 from KyryloKilin/master
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
a h authored Nov 10, 2023
2 parents b6d6056 + 0f04570 commit 5f474ae
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion documentation/aleo/02_hello.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion documentation/aleo/03_language.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down
2 changes: 1 addition & 1 deletion documentation/leo/03_language.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions documentation/leo/04_operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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)
***
***
4 changes: 2 additions & 2 deletions documentation/leo/07_resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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!
We appreciate your hard work!
2 changes: 1 addition & 1 deletion documentation/sdk/typescript/00_sdk_overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5f474ae

Please sign in to comment.