Skip to content

Commit

Permalink
clarifying which row contains the example
Browse files Browse the repository at this point in the history
  • Loading branch information
amab8901 authored Oct 21, 2022
1 parent b8d2c58 commit 7c5b80d
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 7c5b80d

Please sign in to comment.