1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-11-28 18:11:07 +02:00

Update references-dangling.md

This commit is contained in:
drgnchan 2022-12-23 15:41:41 +08:00 committed by GitHub
parent 264047445f
commit 73e9a0b854
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
enough.
* We will talk more about borrowing when we get to ownership.