From e39808cba87392c6a95243844698c4b368853a36 Mon Sep 17 00:00:00 2001 From: Chris C Cerami Date: Mon, 5 Oct 2015 11:40:32 -0400 Subject: [PATCH] Link to 'Lifetime Elision' section at first use of elide --- src/doc/trpl/lifetimes.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/doc/trpl/lifetimes.md b/src/doc/trpl/lifetimes.md index cd4ef6d04d6..eb61dfbd121 100644 --- a/src/doc/trpl/lifetimes.md +++ b/src/doc/trpl/lifetimes.md @@ -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>(...) ```