diff --git a/CPP11.md b/CPP11.md index 88c3e42..db262db 100644 --- a/CPP11.md +++ b/CPP11.md @@ -211,7 +211,7 @@ A `lambda` is an unnamed function object capable of capturing variables in scope * `[]` - captures nothing. * `[=]` - capture local objects (local variables, parameters) in scope by value. * `[&]` - capture local objects (local variables, parameters) in scope by reference. -* `[this]` - capture `this` pointer by value. +* `[this]` - capture `this` by reference. * `[a, &b]` - capture objects `a` by value, `b` by reference. ```c++ diff --git a/README.md b/README.md index 5ea26f1..62e666e 100644 --- a/README.md +++ b/README.md @@ -1371,7 +1371,7 @@ A `lambda` is an unnamed function object capable of capturing variables in scope * `[]` - captures nothing. * `[=]` - capture local objects (local variables, parameters) in scope by value. * `[&]` - capture local objects (local variables, parameters) in scope by reference. -* `[this]` - capture `this` pointer by value. +* `[this]` - capture `this` by reference. * `[a, &b]` - capture objects `a` by value, `b` by reference. ```c++