File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1035,10 +1035,10 @@ let z = x; // no new memory allocated, x can no longer be used
10351035# Borrowed pointers
10361036
10371037Rust'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
10431043As an example, consider a simple struct type, ` Point ` :
10441044
You can’t perform that action at this time.
0 commit comments