Skip to content

Commit c6514df

Browse files
authored
remove //
1 parent 6322fc2 commit c6514df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scope/lifetime/explicit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ fn failed_borrow<'a>() {
4040
let _x = 12;
4141
4242
// ERROR: `_x` does not live long enough
43-
//let y: &'a i32 = &_x;
43+
let y: &'a i32 = &_x;
4444
// Attempting to use the lifetime `'a` as an explicit type annotation
4545
// inside the function will fail because the lifetime of `&_x` is shorter
4646
// than that of `y`. A short lifetime cannot be coerced into a longer one.

0 commit comments

Comments
 (0)