diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2013-09-16 21:18:07 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-09-16 22:19:23 -0400 |
| commit | 4e161a4d401224507513bfbf33b22f0b72f8ba81 (patch) | |
| tree | 59cd25a1d2132de130ddacc5ca2d25d39a511195 /doc/tutorial.md | |
| parent | bc89ade401e637fcb7d4d1d0b7f356ca359b0e7d (diff) | |
| download | rust-4e161a4d401224507513bfbf33b22f0b72f8ba81.tar.gz rust-4e161a4d401224507513bfbf33b22f0b72f8ba81.zip | |
switch Drop to `&mut self`
Diffstat (limited to 'doc/tutorial.md')
| -rw-r--r-- | doc/tutorial.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tutorial.md b/doc/tutorial.md index 637dbb10c23..d786bff58e1 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -1898,7 +1898,7 @@ struct TimeBomb { } impl Drop for TimeBomb { - fn drop(&self) { + fn drop(&mut self) { for _ in range(0, self.explosivity) { println("blam!"); } |
