Skip to content

Commit 7205d6b

Browse files
committed
Fix error in example code
1 parent 5daa753 commit 7205d6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_typeck/check/regionck.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
//!
6262
//! struct Foo { i: i32 }
6363
//! struct Bar { foo: Foo }
64-
//! fn get_i(x: &'a Bar) -> &'a i32 {
64+
//! fn get_i<'a>(x: &'a Bar) -> &'a i32 {
6565
//! let foo = &x.foo; // Lifetime L1
6666
//! &foo.i // Lifetime L2
6767
//! }

0 commit comments

Comments
 (0)