Ch. 4: further tweaks to explanatory comment in Listing 4.8

This commit is contained in:
Chris Krycho
2024-12-11 13:42:18 -07:00
parent 1dd63335da
commit 8a46812ba1

View File

@@ -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