1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-21 06:36:31 +02:00

Merge pull request #44 from drgnchan/patch-1

Fix grammer in references-dangling.md
This commit is contained in:
Martin Geisler 2022-12-23 12:41:59 +01:00 committed by GitHub
commit 2b91c8c818
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ fn main() {
} }
``` ```
* A reference is said to "borrow" the value is refers to. * A reference is said to "borrow" the value it refers to.
* Rust is tracking the lifetimes of all references to ensure they live long * Rust is tracking the lifetimes of all references to ensure they live long
enough. enough.
* We will talk more about borrowing when we get to ownership. * We will talk more about borrowing when we get to ownership.