Fix error in example code

This commit is contained in:
Anders Granlund 2016-01-07 00:09:26 +01:00
parent 5daa75373d
commit 7205d6b580

View file

@ -61,7 +61,7 @@
//!
//! struct Foo { i: i32 }
//! struct Bar { foo: Foo }
//! fn get_i(x: &'a Bar) -> &'a i32 {
//! fn get_i<'a>(x: &'a Bar) -> &'a i32 {
//! let foo = &x.foo; // Lifetime L1
//! &foo.i // Lifetime L2
//! }