From 97b6cc75f7a01bc148f51bd3aad0ff4d0e9717cb Mon Sep 17 00:00:00 2001 From: Lukas Prokop Date: Sun, 17 Jul 2022 12:38:57 +0200 Subject: [PATCH] book: typo fixes (#240) --- book/en-us/03-runtime.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/en-us/03-runtime.md b/book/en-us/03-runtime.md index e1ddd42..35e2252 100644 --- a/book/en-us/03-runtime.md +++ b/book/en-us/03-runtime.md @@ -339,7 +339,7 @@ void reference(std::string&& str) { int main() { std::string lv1 = "string,"; // lv1 is a lvalue - // std::string&& r1 = s1; // illegal, rvalue can't ref to lvalue + // std::string&& r1 = lv1; // illegal, rvalue can't ref to lvalue std::string&& rv1 = std::move(lv1); // legal, std::move can convert lvalue to rvalue std::cout << rv1 << std::endl; // string,