@@ -1431,8 +1431,8 @@ For a more in-depth explanation of borrowed pointers, read the
1431
1431
## Freezing
1432
1432
1433
1433
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].
1436
1436
1437
1437
~~~~
1438
1438
let mut x = 5;
@@ -1443,20 +1443,6 @@ let mut x = 5;
1443
1443
# x = 3;
1444
1444
~~~~
1445
1445
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
-
1460
1446
[refcell]: http://static.rust-lang.org/doc/master/std/cell/struct.RefCell.html
1461
1447
1462
1448
# Dereferencing pointers
@@ -1477,7 +1463,7 @@ assignments. Such an assignment modifies the value that the pointer
1477
1463
points to.
1478
1464
1479
1465
~~~
1480
- let managed = @mut 10;
1466
+ let managed = @10 ;
1481
1467
let mut owned = ~ 20;
1482
1468
1483
1469
let mut value = 30;
@@ -2113,8 +2099,7 @@ unless they contain managed boxes, managed closures, or borrowed pointers.
2113
2099
2114
2100
* `Freeze` - Constant (immutable) types.
2115
2101
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.
2118
2103
2119
2104
* `'static` - Non-borrowed types.
2120
2105
These are types that do not contain any data whose lifetime is bound to
0 commit comments