Skip to content

Commit 97b6cc7

Browse files
authored
book: typo fixes (changkun#240)
1 parent 66d33aa commit 97b6cc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/en-us/03-runtime.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ void reference(std::string&& str) {
339339
int main()
340340
{
341341
std::string lv1 = "string,"; // lv1 is a lvalue
342-
// std::string&& r1 = s1; // illegal, rvalue can't ref to lvalue
342+
// std::string&& r1 = lv1; // illegal, rvalue can't ref to lvalue
343343
std::string&& rv1 = std::move(lv1); // legal, std::move can convert lvalue to rvalue
344344
std::cout << rv1 << std::endl; // string,
345345

0 commit comments

Comments
 (0)