1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-04-27 01:27:37 +02:00

Clarify wording in lifetimes.md (#853)

This commit is contained in:
Martin Geisler 2023-06-22 14:47:27 +02:00 committed by GitHub
parent 186d333227
commit 5e42cc3548
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 elided in most cases with [a few simple
but Rust allows lifetimes to be elided in most cases with [a few simple
rules](https://doc.rust-lang.org/nomicon/lifetime-elision.html).