Skip to content

Commit

Permalink
Make lifetime elision docs clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorBreakfast authored Feb 27, 2017
1 parent 4be034e commit b70f929
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doc/book/src/lifetimes.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ to it.

## Lifetime Elision

Rust supports powerful local type inference in the bodies of functions but not in their item signatures.
It's forbidden to allow reasoning about types based on the item signature alone.
Rust supports powerful local type inference in the bodies of functions, but it
deliberately does not perform any reasoning about types for item signatures.
However, for ergonomic reasons, a very restricted secondary inference algorithm called
“lifetime elision” does apply when judging lifetimes. Lifetime elision is concerned solely with inferring
lifetime parameters using three easily memorizable and unambiguous rules. This means lifetime elision
Expand Down

0 comments on commit b70f929

Please sign in to comment.