Skip to content

Commit 98da5fb

Browse files
committed
Translate code comments
1 parent 97aca15 commit 98da5fb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/dropck.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,9 @@ struct Inspector<T>(T, &'static str, Box<for <'r> fn(&'r T) -> String>);
430430
431431
impl<T> Drop for Inspector<T> {
432432
fn drop(&mut self) {
433-
// The `self.2` call could access a borrow e.g. if `T` is `&'a _`.
433+
// 例えば `T` が `&'a _` である場合、`self.2` の呼び出しによって借用されたデータにアクセス出来てしまうでしょう。
434+
435+
// Inspector({}, {}) はうっかり破棄されたデータにアクセスしてしまいます。
434436
println!("Inspector({}, {}) unwittingly inspects expired data.",
435437
(self.2)(&self.0), self.1);
436438
}

0 commit comments

Comments
 (0)