Skip to content
Snippets Groups Projects
Commit de7f99ca authored by Michaël El Kharroubi's avatar Michaël El Kharroubi :satellite:
Browse files

Fix small bug in example

parent fda801e0
No related branches found
No related tags found
No related merge requests found
......@@ -271,7 +271,7 @@ int x = add_cst(10); // x vaut 15
```cpp
int var = 5;
auto add_cst = [v=&var](int i)
{ return i+v;};
{ return i+*v;};
var = 2;
int x = add_cst(10); // x vaut 12
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment