Skip to content

Commit 989c943

Browse files
nikomatsakislqd
authored andcommitted
Update src/borrow_check/region_inference/lifetime_parameters.md
Co-Authored-By: lqd <remy.rakic+github@gmail.com>
1 parent 5c92fc2 commit 989c943

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/borrow_check/region_inference/lifetime_parameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fn foo<'a, 'b>(x: &'a u32, y: &'b u32) -> &'b u32 {
1515

1616
This example is intended not to compile, because we are returning `x`,
1717
which has type `&'a u32`, but our signature promises that we will
18-
return a `&'b u32` value. But how are lifetimes like `'a` and `'b
18+
return a `&'b u32` value. But how are lifetimes like `'a` and `'b`
1919
integrated into region inference, and how this error wind up being
2020
detected?
2121

0 commit comments

Comments
 (0)