Lifetime guide -> ownership guide

This commit is contained in:
Steve Klabnik 2014-11-04 02:29:23 -05:00
parent 930f87774d
commit e2fe7a083e
7 changed files with 9 additions and 9 deletions

2
configure vendored
View File

@ -1046,7 +1046,7 @@ do
make_dir $h/test/doc-guide-ffi make_dir $h/test/doc-guide-ffi
make_dir $h/test/doc-guide-runtime make_dir $h/test/doc-guide-runtime
make_dir $h/test/doc-guide-macros make_dir $h/test/doc-guide-macros
make_dir $h/test/doc-guide-lifetimes make_dir $h/test/doc-guide-ownership
make_dir $h/test/doc-guide-pointers make_dir $h/test/doc-guide-pointers
make_dir $h/test/doc-guide-container make_dir $h/test/doc-guide-container
make_dir $h/test/doc-guide-tasks make_dir $h/test/doc-guide-tasks

View File

@ -25,7 +25,7 @@
# L10N_LANGS are the languages for which the docs have been # L10N_LANGS are the languages for which the docs have been
# translated. # translated.
###################################################################### ######################################################################
DOCS := index intro tutorial guide guide-ffi guide-macros guide-lifetimes \ DOCS := index intro tutorial guide guide-ffi guide-macros guide-ownership \
guide-tasks guide-container guide-pointers guide-testing \ guide-tasks guide-container guide-pointers guide-testing \
guide-plugin guide-crates complement-bugreport guide-error-handling \ guide-plugin guide-crates complement-bugreport guide-error-handling \
complement-lang-faq complement-design-faq complement-project-faq \ complement-lang-faq complement-design-faq complement-project-faq \

View File

@ -408,8 +408,8 @@ test.rs:4 let y = &x;
``` ```
As you might guess, this kind of analysis is complex for a human, and therefore As you might guess, this kind of analysis is complex for a human, and therefore
hard for a computer, too! There is an entire [guide devoted to references hard for a computer, too! There is an entire [guide devoted to references, ownership,
and lifetimes](guide-lifetimes.html) that goes into lifetimes in and lifetimes](guide-ownership.html) that goes into this topic in
great detail, so if you want the full details, check that out. great detail, so if you want the full details, check that out.
## Best practices ## Best practices
@ -526,7 +526,7 @@ with some improvements:
4. Rust enforces that no other writeable pointers alias to this heap memory, 4. Rust enforces that no other writeable pointers alias to this heap memory,
which means writing to an invalid pointer is not possible. which means writing to an invalid pointer is not possible.
See the section on references or the [lifetimes guide](guide-lifetimes.html) See the section on references or the [ownership guide](guide-ownership.html)
for more detail on how lifetimes work. for more detail on how lifetimes work.
Using boxes and references together is very common. For example: Using boxes and references together is very common. For example:
@ -759,5 +759,5 @@ Here's a quick rundown of Rust's pointer types:
# Related resources # Related resources
* [API documentation for Box](std/boxed/index.html) * [API documentation for Box](std/boxed/index.html)
* [Lifetimes guide](guide-lifetimes.html) * [Ownership guide](guide-ownership.html)
* [Cyclone paper on regions](http://www.cs.umd.edu/projects/cyclone/papers/cyclone-regions.pdf), which inspired Rust's lifetime system * [Cyclone paper on regions](http://www.cs.umd.edu/projects/cyclone/papers/cyclone-regions.pdf), which inspired Rust's lifetime system

View File

@ -37,7 +37,7 @@ build safe interfaces.
## References ## References
One of Rust's biggest features is memory safety. This is achieved in One of Rust's biggest features is memory safety. This is achieved in
part via [the lifetime system](guide-lifetimes.html), which is how the part via [the ownership system](guide-ownership.html), which is how the
compiler can guarantee that every `&` reference is always valid, and, compiler can guarantee that every `&` reference is always valid, and,
for example, never pointing to freed memory. for example, never pointing to freed memory.

View File

@ -54,9 +54,9 @@ Rust Guides are in-depth looks at a particular topic that's relevant to Rust
development. If you're trying to figure out how to do something, there may be development. If you're trying to figure out how to do something, there may be
a guide that can help you out: a guide that can help you out:
* [Ownership](guide-ownership.html)
* [Strings](guide-strings.html) * [Strings](guide-strings.html)
* [Pointers](guide-pointers.html) * [Pointers](guide-pointers.html)
* [References and Lifetimes](guide-lifetimes.html)
* [Crates and modules](guide-crates.html) * [Crates and modules](guide-crates.html)
* [Tasks and Communication](guide-tasks.html) * [Tasks and Communication](guide-tasks.html)
* [Error Handling](guide-error-handling.html) * [Error Handling](guide-error-handling.html)

View File

@ -11,7 +11,7 @@
[type: text] src/doc/complement-project-faq.md $lang:doc/l10n/$lang/complement-project-faq.md [type: text] src/doc/complement-project-faq.md $lang:doc/l10n/$lang/complement-project-faq.md
[type: text] src/doc/guide-container.md $lang:doc/l10n/$lang/guide-container.md [type: text] src/doc/guide-container.md $lang:doc/l10n/$lang/guide-container.md
[type: text] src/doc/guide-ffi.md $lang:doc/l10n/$lang/guide-ffi.md [type: text] src/doc/guide-ffi.md $lang:doc/l10n/$lang/guide-ffi.md
[type: text] src/doc/guide-lifetimes.md $lang:doc/l10n/$lang/guide-lifetimes.md [type: text] src/doc/guide-ownership.md $lang:doc/l10n/$lang/guide-ownership.md
[type: text] src/doc/guide-macros.md $lang:doc/l10n/$lang/guide-macros.md [type: text] src/doc/guide-macros.md $lang:doc/l10n/$lang/guide-macros.md
[type: text] src/doc/guide-plugin.md $lang:doc/l10n/$lang/guide-plugin.md [type: text] src/doc/guide-plugin.md $lang:doc/l10n/$lang/guide-plugin.md
[type: text] src/doc/guide-pointers.md $lang:doc/l10n/$lang/guide-pointers.md [type: text] src/doc/guide-pointers.md $lang:doc/l10n/$lang/guide-pointers.md