Fix tutorial's use of Drop
This commit is contained in:
parent
2a6c6348b7
commit
d1c558394f
@ -1913,7 +1913,7 @@ struct TimeBomb {
|
||||
}
|
||||
|
||||
impl TimeBomb : Drop {
|
||||
fn finalize() {
|
||||
fn finalize(&self) {
|
||||
for iter::repeat(self.explosivity) {
|
||||
io::println("blam!");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user