diff --git a/CPP11.md b/CPP11.md index 3e996f6..f40e4e9 100644 --- a/CPP11.md +++ b/CPP11.md @@ -82,10 +82,10 @@ void f(int&& x) {} f(x); // calls f(int&) f(xl); // calls f(int&) f(3); // calls f(int&&) -f(std::move(x)) // calls f(int&&) +f(std::move(x)); // calls f(int&&) f(xr2); // calls f(int&) -f(std::move(xr2)) // calls f(int&& x) +f(std::move(xr2)); // calls f(int&& x) ``` See also: [`std::move`](#stdmove), [`std::forward`](#stdforward), [`forwarding references`](#forwarding-references). diff --git a/README.md b/README.md index a23e508..fa93ca6 100644 --- a/README.md +++ b/README.md @@ -1338,10 +1338,10 @@ void f(int&& x) {} f(x); // calls f(int&) f(xl); // calls f(int&) f(3); // calls f(int&&) -f(std::move(x)) // calls f(int&&) +f(std::move(x)); // calls f(int&&) f(xr2); // calls f(int&) -f(std::move(xr2)) // calls f(int&& x) +f(std::move(xr2)); // calls f(int&& x) ``` See also: [`std::move`](#stdmove), [`std::forward`](#stdforward), [`forwarding references`](#forwarding-references).