Updated with requested changes
This commit is contained in:
parent
5d8e085369
commit
5efdcf268a
@ -157,7 +157,7 @@ But, unlike a move, we can still use `v` afterward. This is because an `i32`
|
||||
has no pointers to data somewhere else, copying it is a full copy.
|
||||
|
||||
All primitive types implement the `Copy` trait and their ownership is
|
||||
therefore not moved like one would assume, following the **ownership rules**.
|
||||
therefore not moved like one would assume, following the ´ownership rules´.
|
||||
To give an example, the two following snippets of code only compile because the
|
||||
`i32` and `bool` types implement the `Copy` trait.
|
||||
|
||||
@ -196,9 +196,6 @@ println!("{}", a);
|
||||
^
|
||||
```
|
||||
|
||||
This is quite important to understand, because it is an exception to the most
|
||||
fundamental rule in the Rust language.
|
||||
|
||||
We will discuss how to make your own types `Copy` in the [traits][traits]
|
||||
section.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user