Skip to content

Commit

Permalink
Merge pull request #1287 from amab8901/patch-2
Browse files Browse the repository at this point in the history
clarifying which row contains the example
  • Loading branch information
Havvy committed Oct 21, 2022
2 parents b8d2c58 + 7c5b80d commit 0276e07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/expressions/grouped-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Parentheses can be used to explicitly modify the precedence order of subexpressi
An example of a parenthesized expression:

```rust
let x: i32 = 2 + 3 * 4;
let y: i32 = (2 + 3) * 4;
let x: i32 = 2 + 3 * 4; // not parenthesized
let y: i32 = (2 + 3) * 4; // parenthesized
assert_eq!(x, 14);
assert_eq!(y, 20);
```
Expand Down

0 comments on commit 0276e07

Please sign in to comment.