File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1431,7 +1431,8 @@ For a more in-depth explanation of borrowed pointers, read the
14311431## Freezing
14321432
14331433Lending an immutable pointer to an object freezes it and prevents mutation.
1434- `Owned` objects have freezing enforced statically at compile-time.
1434+ `Freeze` objects have freezing enforced statically at compile-time. Examples
1435+ of non-`Freeze` types are `@mut` and [`RefCell<T>`][refcell].
14351436
14361437~~~~
14371438let mut x = 5;
@@ -1456,6 +1457,8 @@ let y = x;
14561457// the box is now unfrozen again
14571458~~~~
14581459
1460+ [refcell]: http://static.rust-lang.org/doc/master/std/cell/struct.RefCell.html
1461+
14591462# Dereferencing pointers
14601463
14611464Rust uses the unary star operator (`*`) to access the contents of a
You can’t perform that action at this time.
0 commit comments