From a0ae2d068c988198f0f936dafde5f0f2b42e7e23 Mon Sep 17 00:00:00 2001 From: runewalsh Date: Wed, 5 Sep 2018 13:52:37 +0300 Subject: [PATCH] std::move typo --- CPP11.md | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CPP11.md b/CPP11.md index 7aea076..b31dcac 100644 --- a/CPP11.md +++ b/CPP11.md @@ -559,7 +559,7 @@ Transferring `std::unique_ptr`s: ```c++ std::unique_ptr p1{ new int }; std::unique_ptr p2 = p1; // error -- cannot copy unique pointers -std::unique_ptr p3 = std::move(p1); // move `p1` into `p2` +std::unique_ptr p3 = std::move(p1); // move `p1` into `p3` // now unsafe to dereference object held by `p1` ``` diff --git a/README.md b/README.md index f1036e0..549a279 100644 --- a/README.md +++ b/README.md @@ -1151,7 +1151,7 @@ Transferring `std::unique_ptr`s: ```c++ std::unique_ptr p1{ new int }; std::unique_ptr p2 = p1; // error -- cannot copy unique pointers -std::unique_ptr p3 = std::move(p1); // move `p1` into `p2` +std::unique_ptr p3 = std::move(p1); // move `p1` into `p3` // now unsafe to dereference object held by `p1` ```