Auto merge of #27015 - frankmcsherry:patch-1, r=steveklabnik
Grammatical update (and passive -> active, but I'm not sure if "Rust" is often used as a subject in the book; feel free to revert that part for style, but keep the subject-verb agreement) r? @steveklabnik
This commit is contained in:
commit
137a699cc3
1 changed files with 2 additions and 2 deletions
|
|
@ -42,8 +42,8 @@ With that in mind, let’s learn about ownership.
|
|||
# Ownership
|
||||
|
||||
[Variable bindings][bindings] have a property in Rust: they ‘have ownership’
|
||||
of what they’re bound to. This means that when a binding goes out of scope, the
|
||||
resource that they’re bound to are freed. For example:
|
||||
of what they’re bound to. This means that when a binding goes out of scope,
|
||||
Rust will free the bound resources. For example:
|
||||
|
||||
```rust
|
||||
fn foo() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue