Skip to content

Commit 2619710

Browse files
authored
Merge pull request #2486 from Nemo157/patch-1
Fix inconsistency in in-band-lifetimes RFC
2 parents c21da6c + 82c16d3 commit 2619710

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)