Skip to content

Commit 551cc4b

Browse files
authored
Merge pull request #1409 from SbstnErhrdt/patch-1
remove //
2 parents 6322fc2 + c6514df commit 551cc4b

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)