File tree 1 file changed +4
-4
lines changed
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
1035
1035
# Borrowed pointers
1036
1036
1037
1037
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.
1042
1042
1043
1043
As an example, consider a simple struct type, ` Point ` :
1044
1044
You can’t perform that action at this time.
0 commit comments