mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-17 04:34:40 +03:00
fix: value_2 typo error in section 3.1 (#37)
This commit is contained in:
@@ -29,7 +29,7 @@ void learn_lambda_func_2() {
|
||||
value_2 = 100;
|
||||
auto stored_value_2 = copy_value_2();
|
||||
std::cout << "stored_value_2=" << stored_value_2 << std::endl;
|
||||
// 这时, stored_value_2 == 100, value_1 == 100.
|
||||
// 这时, stored_value_2 == 100, value_2 == 100.
|
||||
// 因为 copy_value_2 保存的是引用
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user