Skip to content

Commit 4c052d3

Browse files
authored
Update borrowing.md (#222)
1 parent de4aa3d commit 4c052d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ownership/borrowing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Notes on stack returns:
4646
}
4747
```
4848
* The Rust compiler can do return value optimization (RVO).
49-
* 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.
49+
* 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.
5050

5151
</details>
5252

0 commit comments

Comments
 (0)