Skip to content

Commit

Permalink
less words
Browse files Browse the repository at this point in the history
  • Loading branch information
chadoh committed Jun 20, 2022
1 parent 258af5e commit 79210c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/counter/impl.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Next let's see how to mutate or change `val`.

### `;`

Rust uses semicolons to separate expressions. You'll see that the last line here is the same as the only line in `get_num`, with no semicolon. You may have already guessed that this means `set_num` also returns the value of `num`. This also matches the return type, `-> i8`.
Rust uses semicolons to separate expressions. See that the last line here is the same as the only line in `get_num`, with no semicolon. You may have already guessed that this means `set_num` also returns the value of `num`. This also matches the return type, `-> i8`.

### `&mut self`

Expand Down

0 comments on commit 79210c5

Please sign in to comment.