Fix tutorial's use of Drop

This commit is contained in:
Brian Anderson 2012-11-29 16:23:24 -08:00
parent 2a6c6348b7
commit d1c558394f

View File

@ -1913,7 +1913,7 @@ struct TimeBomb {
}
impl TimeBomb : Drop {
fn finalize() {
fn finalize(&self) {
for iter::repeat(self.explosivity) {
io::println("blam!");
}