Skip to content

Commit d7e934a

Browse files
Grace0926changkun
authored andcommitted
fix: value_2 typo error in section 3.1 (changkun#37)
1 parent 0750e93 commit d7e934a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/3/3.1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void learn_lambda_func_2() {
2929
value_2 = 100;
3030
auto stored_value_2 = copy_value_2();
3131
std::cout << "stored_value_2=" << stored_value_2 << std::endl;
32-
// 这时, stored_value_2 == 100, value_1 == 100.
32+
// 这时, stored_value_2 == 100, value_2 == 100.
3333
// 因为 copy_value_2 保存的是引用
3434
}
3535

0 commit comments

Comments
 (0)