Skip to content

Commit 82c16d3

Browse files
authored
Fix inconsistency in in-band-lifetimes RFC
As noted at c20ea6d#r135393851 two of the function signatures missed the update from backreferences to in-band declaration.
1 parent 74d4623 commit 82c16d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

text/2115-argument-lifetimes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,8 @@ tomorrow you would write:
334334

335335
```rust
336336
fn elided(&self) -> &str
337-
fn two_args(arg1: &Foo, arg2: &Bar) -> &'arg2 Baz
338-
fn two_lifetimes(arg1: &Foo, arg2: &Bar) -> &'arg1 Quux<'arg2>
337+
fn two_args(arg1: &Foo, arg2: &'arg2 Bar) -> &'arg2 Baz
338+
fn two_lifetimes(arg1: &'arg1 Foo, arg2: &'arg2 Bar) -> &'arg1 Quux<'arg2>
339339

340340
impl MyStruct<'A> {
341341
fn foo(&self) -> &'A str

0 commit comments

Comments
 (0)