diff options
Diffstat (limited to 'src/doc/guide-unsafe.md')
| -rw-r--r-- | src/doc/guide-unsafe.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/guide-unsafe.md b/src/doc/guide-unsafe.md index 300c5bae964..fc6a12b495e 100644 --- a/src/doc/guide-unsafe.md +++ b/src/doc/guide-unsafe.md @@ -258,10 +258,10 @@ impl<T: Send> Drop for Unique<T> { } } -// A comparison between the built-in ~ and this reimplementation +// A comparison between the built-in `Box` and this reimplementation fn main() { { - let mut x = ~5; + let mut x = box 5; *x = 10; } // `x` is freed here |
