mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
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