mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-26 14:43:24 +00:00
rollup merge of #20709: thiagopnts/ownership-guide-typo
I was reading the ownership guide and found this small typo :bowtie:
This commit is contained in:
commit
5d342acba2
@ -458,7 +458,7 @@ lifetime, and so if you elide a lifetime (like `&T` instead of `&'a T`), Rust
|
|||||||
will do three things to determine what those lifetimes should be.
|
will do three things to determine what those lifetimes should be.
|
||||||
|
|
||||||
When talking about lifetime elision, we use the term 'input lifetime' and
|
When talking about lifetime elision, we use the term 'input lifetime' and
|
||||||
'output lifetime'. An 'input liftime' is a lifetime associated with a parameter
|
'output lifetime'. An 'input lifetime' is a lifetime associated with a parameter
|
||||||
of a function, and an 'output lifetime' is a lifetime associated with the return
|
of a function, and an 'output lifetime' is a lifetime associated with the return
|
||||||
value of a function. For example, this function has an input lifetime:
|
value of a function. For example, this function has an input lifetime:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user