Skip to content

Commit 46de2a8

Browse files
committed
fix issue rust-lang#191
1 parent a70820f commit 46de2a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

second-edition/src/ch04-03-slices.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,8 @@ fn main() {
237237
let word = first_word(&s);
238238
239239
s.clear(); // Error!
240+
241+
println!("the first word is: {}", word);
240242
}
241243
```
242244

0 commit comments

Comments
 (0)