Skip to content

Commit 9b35ae7

Browse files
committed
doc: Remove all mentions of @mut from the documentation.
1 parent c3694d7 commit 9b35ae7

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

doc/tutorial.md

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,8 +1431,8 @@ For a more in-depth explanation of borrowed pointers, read the
14311431
## Freezing
14321432
14331433
Lending an immutable pointer to an object freezes it and prevents mutation.
1434-
`Freeze` objects have freezing enforced statically at compile-time. Examples
1435-
of non-`Freeze` types are `@mut` and [`RefCell<T>`][refcell].
1434+
`Freeze` objects have freezing enforced statically at compile-time. An example
1435+
of a non-`Freeze` type is [`RefCell<T>`][refcell].
14361436
14371437
~~~~
14381438
let mut x = 5;
@@ -1443,20 +1443,6 @@ let mut x = 5;
14431443
# x = 3;
14441444
~~~~
14451445
1446-
Mutable managed boxes handle freezing dynamically when any of their contents
1447-
are borrowed, and the task will fail if an attempt to modify them is made while
1448-
they are frozen:
1449-
1450-
~~~~
1451-
let x = @mut 5;
1452-
let y = x;
1453-
{
1454-
let z = &*y; // the managed box is now frozen
1455-
// modifying it through x or y will cause a task failure
1456-
}
1457-
// the box is now unfrozen again
1458-
~~~~
1459-
14601446
[refcell]: http://static.rust-lang.org/doc/master/std/cell/struct.RefCell.html
14611447
14621448
# Dereferencing pointers
@@ -1477,7 +1463,7 @@ assignments. Such an assignment modifies the value that the pointer
14771463
points to.
14781464
14791465
~~~
1480-
let managed = @mut 10;
1466+
let managed = @10;
14811467
let mut owned = ~20;
14821468

14831469
let mut value = 30;
@@ -2113,8 +2099,7 @@ unless they contain managed boxes, managed closures, or borrowed pointers.
21132099
21142100
* `Freeze` - Constant (immutable) types.
21152101
These are types that do not contain anything intrinsically mutable.
2116-
Intrinsically mutable values include `@mut`
2117-
and `Cell` in the standard library.
2102+
Intrinsically mutable values include `Cell` in the standard library.
21182103
21192104
* `'static` - Non-borrowed types.
21202105
These are types that do not contain any data whose lifetime is bound to

0 commit comments

Comments
 (0)