Skip to content

Commit

Permalink
Specify edition2018
Browse files Browse the repository at this point in the history
  • Loading branch information
carols10cents committed Mar 8, 2019
1 parent 11bedee commit fa6519e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch04-02-references-and-borrowing.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ through the last time that reference is used. For instance, this code will
compile because the last usage of the immutable references occurs before the
mutable reference is introduced:

```rust
```rust,edition2018
let mut s = String::from("hello");
let r1 = &s; // no problem
Expand Down

0 comments on commit fa6519e

Please sign in to comment.