1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-31 01:38:16 +02:00

Fix typo in borrowing.md (#790)

This commit is contained in:
Roman 2023-06-10 15:31:46 +02:00 committed by GitHub
parent 07a7380b13
commit 4074b72df8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ Notes on stack returns:
}
```
* The Rust compiler can do return value optimization (RVO).
* In C++, copy elision has to be defined in the language specification because constructors can have side effects. In Rust, this is not an issue at all. If RVO did not happen, Rust will always performs a simple and efficient `memcpy` copy.
* In C++, copy elision has to be defined in the language specification because constructors can have side effects. In Rust, this is not an issue at all. If RVO did not happen, Rust will always perform a simple and efficient `memcpy` copy.
</details>