Skip to content

Commit 8c0b6a8

Browse files
Merge pull request #1463 from andreasfelix/patch-1
Fix syntax in `'static lifetime elision` section of `lifetime-elision.md`
2 parents 5be836c + 8c6c7cd commit 8c0b6a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lifetime-elision.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,10 @@ usual rules, then it will error. By way of example:
182182
# struct Bar;
183183
# struct Baz;
184184
# fn somefunc(a: &Foo, b: &Bar, c: &Baz) -> usize {42}
185-
// Resolved as `fn<'a>(&'a str) -> &'a str`.
185+
// Resolved as `for<'a> fn(&'a str) -> &'a str`.
186186
const RESOLVED_SINGLE: fn(&str) -> &str = |x| x;
187187

188-
// Resolved as `Fn<'a, 'b, 'c>(&'a Foo, &'b Bar, &'c Baz) -> usize`.
188+
// Resolved as `for<'a, 'b, 'c> Fn(&'a Foo, &'b Bar, &'c Baz) -> usize`.
189189
const RESOLVED_MULTIPLE: &dyn Fn(&Foo, &Bar, &Baz) -> usize = &somefunc;
190190
```
191191

0 commit comments

Comments
 (0)