Fixed comment in example code of F.54 (#1082)

This commit is contained in:
Florian Behrens 2017-11-17 16:20:09 +01:00 committed by Sergey Zubkov
parent df68bfdc5b
commit 3d4e860bdd

View File

@ -3835,9 +3835,9 @@ It's confusing. Writing `[=]` in a member function appears to capture by value,
// [=,this] and [&,this] are not much better, and confusing
x = 42;
lambda(); // calls use(42);
lambda(); // calls use(0, 42);
x = 43;
lambda(); // calls use(43);
lambda(); // calls use(0, 43);
// ...