]> git.lizzy.rs Git - rust.git/commitdiff
Link to 'Lifetime Elision' section at first use of elide
authorChris C Cerami <chrisccerami@gmail.com>
Mon, 5 Oct 2015 15:40:32 +0000 (11:40 -0400)
committerChris C Cerami <chrisccerami@gmail.com>
Mon, 5 Oct 2015 15:40:32 +0000 (11:40 -0400)
src/doc/trpl/lifetimes.md

index cd4ef6d04d6d326bf18aa413605184418b8fcd2d..eb61dfbd121f2da445eb78c954da182938e22702 100644 (file)
@@ -70,9 +70,11 @@ fn bar<'a>(x: &'a i32) {
 ```
 
 The `'a` reads ‘the lifetime a’. Technically, every reference has some lifetime
-associated with it, but the compiler lets you omit them in common cases.
+associated with it, but the compiler lets you elide (i.e. omit, see ["Lifetime Elision"][lifetime-elision] below) them in common cases.
 Before we get to that, though, let’s break the explicit example down:
 
+[lifetime-elision]: #user-content-lifetime-elision
+
 ```rust,ignore
 fn bar<'a>(...)
 ```