Fix tutorial's use of Drop
This commit is contained in:
parent
2a6c6348b7
commit
d1c558394f
1 changed files with 1 additions and 1 deletions
|
@ -1913,7 +1913,7 @@ struct TimeBomb {
|
|||
}
|
||||
|
||||
impl TimeBomb : Drop {
|
||||
fn finalize() {
|
||||
fn finalize(&self) {
|
||||
for iter::repeat(self.explosivity) {
|
||||
io::println("blam!");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue