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
Branches
No related tags found
No related merge requests found
...@@ -271,7 +271,7 @@ int x = add_cst(10); // x vaut 15 ...@@ -271,7 +271,7 @@ int x = add_cst(10); // x vaut 15
```cpp ```cpp
int var = 5; int var = 5;
auto add_cst = [v=&var](int i) auto add_cst = [v=&var](int i)
{ return i+v;}; { return i+*v;};
var = 2; var = 2;
int x = add_cst(10); // x vaut 12 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