1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-11-26 01:30:22 +02:00

Update lifetimes.md (#739)

* Update lifetimes.md

Don't think elidied is a word, nothing comes up if I google it. I think omitted works here.

* Update lifetimes.md
This commit is contained in:
Florian 2023-05-31 14:55:54 +02:00 committed by GitHub
parent 5de9cdafea
commit ff3fa50597
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,5 +11,5 @@ A borrowed value has a _lifetime_:
* Lifetime annotations create constraints; the compiler verifies that there is
a valid solution.
* Lifetimes for function arguments and return values must be fully specified,
but Rust allows these to be elidied in most cases with [a few simple
but Rust allows these to be elided in most cases with [a few simple
rules](https://doc.rust-lang.org/nomicon/lifetime-elision.html).