Skip to content

Commit 777ad8b

Browse files
committed
tutorial: use "owned box" consistently
1 parent a985bc5 commit 777ad8b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/tutorial.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,10 +1035,10 @@ let z = x; // no new memory allocated, x can no longer be used
10351035
# Borrowed pointers
10361036

10371037
Rust's borrowed pointers are a general purpose reference type. In contrast with
1038-
owned pointers, where the holder of an owned pointer is the owner of the
1039-
pointed-to memory, borrowed pointers never imply ownership. A pointer can be
1040-
borrowed to any object, and the compiler verifies that it cannot outlive the
1041-
lifetime of the object.
1038+
owned boxes, where the holder of an owned box is the owner of the pointed-to
1039+
memory, borrowed pointers never imply ownership. A pointer can be borrowed to
1040+
any object, and the compiler verifies that it cannot outlive the lifetime of
1041+
the object.
10421042

10431043
As an example, consider a simple struct type, `Point`:
10441044

0 commit comments

Comments
 (0)