Skip to content

Commit c8f47db

Browse files
committed
Update Freeze information
1 parent fab5624 commit c8f47db

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doc/tutorial.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1431,7 +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-
`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
~~~~
14371438
let 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
14611464
Rust uses the unary star operator (`*`) to access the contents of a

0 commit comments

Comments
 (0)