Skip to content

Commit 6f0b1a8

Browse files
authored
Merge pull request #3180 from aadeexyz/patch-1
Fixed grammatical error in the comment on line 22
2 parents d491e87 + 8a46812 commit 6f0b1a8

File tree

1 file changed

+3
-2
lines changed
  • listings/ch04-understanding-ownership/listing-04-08/src

1 file changed

+3
-2
lines changed

listings/ch04-understanding-ownership/listing-04-08/src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ fn main() {
1818

1919
s.clear(); // this empties the String, making it equal to ""
2020

21-
// word still has the value 5 here, but there's no more string that
22-
// we could meaningfully use the value 5 with. word is now totally invalid!
21+
// `word` still has the value `5` here, but `s` no longer has any content
22+
// that we could meaningfully use with the value `5`, so `word` is now
23+
// totally invalid!
2324
}
2425
// ANCHOR_END: here

0 commit comments

Comments
 (0)