mirror of
https://github.com/rust-lang/book.git
synced 2026-05-16 20:51:10 -04:00
Ch. 4: further tweaks to explanatory comment in Listing 4.8
This commit is contained in:
@@ -18,7 +18,8 @@ fn main() {
|
||||
|
||||
s.clear(); // this empties the String, making it equal to ""
|
||||
|
||||
// word still has the value 5 here, but there's no more string that
|
||||
// we could meaningfully use with the value 5 as word is now totally invalid!
|
||||
// `word` still has the value `5` here, but `s` no longer has any content
|
||||
// that we could meaningfully use with the value `5`, so `word` is now
|
||||
// totally invalid!
|
||||
}
|
||||
// ANCHOR_END: here
|
||||
|
||||
Reference in New Issue
Block a user