diff --git a/README.md b/README.md index d42625d..467473d 100644 --- a/README.md +++ b/README.md @@ -806,8 +806,8 @@ struct A { A() : s("test") {} A(const A& o) : s(o.s) {} A(A&& o) : s(std::move(o.s)) {} - A& operator=(A&& other) { - s = std::move(other.s); + A& operator=(A&& o) { + s = std::move(o.s); return *this; } };