mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-03-05 16:36:19 +02:00
Update move-semantics.md (#438)
This commit is contained in:
parent
aef4c3ca72
commit
e6d6ee28fe
@ -21,6 +21,6 @@ fn main() {
|
|||||||
|
|
||||||
* Mention that this is the opposite of the defaults in C++, which copies by value unless you use `std::move` (and the move constructor is defined!).
|
* Mention that this is the opposite of the defaults in C++, which copies by value unless you use `std::move` (and the move constructor is defined!).
|
||||||
|
|
||||||
* In Rust, you clones are explicit (by using `clone`).
|
* In Rust, clones are explicit (by using `clone`).
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user