diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2013-03-29 14:16:52 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-03-29 14:16:52 -0400 |
| commit | 777ad8b20452d94111f9c834d0f277575a564ca3 (patch) | |
| tree | 71e7f46942776640a978ebd66554713352215518 | |
| parent | a985bc52cd3e65ee6693327eb728d34f477c0a12 (diff) | |
| download | rust-777ad8b20452d94111f9c834d0f277575a564ca3.tar.gz rust-777ad8b20452d94111f9c834d0f277575a564ca3.zip | |
tutorial: use "owned box" consistently
| -rw-r--r-- | doc/tutorial.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/tutorial.md b/doc/tutorial.md index 9f36786648a..ad422aa8ea2 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -1035,10 +1035,10 @@ let z = x; // no new memory allocated, x can no longer be used # Borrowed pointers Rust's borrowed pointers are a general purpose reference type. In contrast with -owned pointers, where the holder of an owned pointer is the owner of the -pointed-to memory, borrowed pointers never imply ownership. A pointer can be -borrowed to any object, and the compiler verifies that it cannot outlive the -lifetime of the object. +owned boxes, where the holder of an owned box is the owner of the pointed-to +memory, borrowed pointers never imply ownership. A pointer can be borrowed to +any object, and the compiler verifies that it cannot outlive the lifetime of +the object. As an example, consider a simple struct type, `Point`: |
