Skip to content

Commit d1c5583

Browse files
committed
Fix tutorial's use of Drop
1 parent 2a6c634 commit d1c5583

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1913,7 +1913,7 @@ struct TimeBomb {
19131913
}
19141914
19151915
impl TimeBomb : Drop {
1916-
fn finalize() {
1916+
fn finalize(&self) {
19171917
for iter::repeat(self.explosivity) {
19181918
io::println("blam!");
19191919
}

0 commit comments

Comments
 (0)