From 7dfa4b298262fde037b5fbbb8fe20468d7306cbb Mon Sep 17 00:00:00 2001 From: noam Date: Sun, 23 Mar 2014 16:05:01 -0400 Subject: docs: named lifetimes * Include tip given by Leo Testard in mailing list about labeled `break` and `continue`: https://mail.mozilla.org/pipermail/rust-dev/2014-March/009145.html * cross-reference named lifetimes in tutorial -> lifetimes guide * Broke named lifetimes section into two sub-sections. * Added mention of `'static` lifetime. --- src/doc/tutorial.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/doc/tutorial.md') diff --git a/src/doc/tutorial.md b/src/doc/tutorial.md index bfa1a3a2a29..09539e6d59d 100644 --- a/src/doc/tutorial.md +++ b/src/doc/tutorial.md @@ -2103,7 +2103,8 @@ a `&T` pointer. `MutexArc` is an example of a *sharable* type with internal muta These are types that do not contain any data whose lifetime is bound to a particular stack frame. These are types that do not contain any references, or types where the only contained references -have the `'static` lifetime. +have the `'static` lifetime. (For more on named lifetimes and their uses, +see the [references and lifetimes guide][lifetimes].) > ***Note:*** These two traits were referred to as 'kinds' in earlier > iterations of the language, and often still are. -- cgit 1.4.1-3-g733a5