Skip to content

Commit

Permalink
Merge pull request #245 from Dimitrolito/fix/typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
mimoo authored Dec 12, 2024
2 parents c21739d + 069d4de commit e0e9e55
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion book/src/cellvar.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Note: a `CellVar` is potentially not directly added to the rows of the execution
For example, a private input is converted directly to a (number of) `CellVar`(s),
but only added to the rows when it appears in a constraint for the first time.

As the final step of the compilation, we double check that all `CellVar`s have appeared in the rows of the execution trace at some point. If they haven't, it can mean two things:
As the final step of the compilation, we double-check that all `CellVar`s have appeared in the rows of the execution trace at some point. If they haven't, it can mean two things:

* A private or public input was never used in the circuit. In this case we return an error to the user.
* There is a bug in the compiler. In this case we panic.
Expand Down
4 changes: 2 additions & 2 deletions book/src/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ In the example
let a = b.c.d;
```

the expression node representing the right hand side could be seen as:
the expression node representing the right-hand side could be seen as:

```rust
ExprKind::FieldAccess {
Expand All @@ -64,7 +64,7 @@ At some point the [circuit-writer]() would have to go through an expression node

```rust
ExprKind::Assignment {
lhs: /* the left hand side as an Expr */,
lhs: /* the left-hand side as an Expr */,
rhs: Expr { kind: ExprKind::BigInt { value: 42 } },
}
```
Expand Down
2 changes: 1 addition & 1 deletion book/src/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ This still doesn't fix our problem. In the line:
let thing = Thing { x: 1, y: 2 };
```

the local variable `thing` is stored, but the right hand side is computed via the `compute_expr()` function which will go through the AST and potentially create different anonymous variables until it can compute a value.
the local variable `thing` is stored, but the right-hand side is computed via the `compute_expr()` function which will go through the AST and potentially create different anonymous variables until it can compute a value.

There's three ways to solve this:

Expand Down
2 changes: 1 addition & 1 deletion book/src/paths.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ A path is represent like this internally:
/// `module::A.a`.
#[derive(Debug, Clone)]
pub struct Path {
/// A module, if this is an foreign import.
/// A module, if this is a foreign import.
pub module: Option<Ident>,

/// The name of the type, function, method, or constant.
Expand Down

0 comments on commit e0e9e55

Please sign in to comment.