We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c49a92e commit f50eb94Copy full SHA for f50eb94
src/dropck.md
@@ -116,6 +116,7 @@ struct Inspector<'a>(&'a u8);
116
117
impl<'a> Drop for Inspector<'a> {
118
fn drop(&mut self) {
119
+ // 退職からたった{}日でした!
120
println!("I was only {} days from retirement!", self.0);
121
}
122
@@ -124,8 +125,8 @@ fn main() {
124
125
let (inspector, days);
126
days = Box::new(1);
127
inspector = Inspector(&days);
- // Let's say `days` happens to get dropped first.
128
- // Then when Inspector is dropped, it will try to read free'd memory!
+ // `days` が先にドロップするとしましょう。
129
+ // すると、 Inspector がドロップされる時、解放されたメモリを読もうとします!
130
131
```
132
0 commit comments