std::move typo

This commit is contained in:
runewalsh
2018-09-05 13:52:37 +03:00
parent aa50febf56
commit a0ae2d068c
2 changed files with 2 additions and 2 deletions

View File

@@ -1151,7 +1151,7 @@ Transferring `std::unique_ptr`s:
```c++
std::unique_ptr<int> p1{ new int };
std::unique_ptr<int> p2 = p1; // error -- cannot copy unique pointers
std::unique_ptr<int> p3 = std::move(p1); // move `p1` into `p2`
std::unique_ptr<int> p3 = std::move(p1); // move `p1` into `p3`
// now unsafe to dereference object held by `p1`
```