diff --git a/cpp_basics_for_STL.typ b/cpp_basics_for_STL.typ index 6e326720b11de9e1f75abd856c0cc8447eec2137..e1afc4d5ed724e1df4177136aef854a5ae0ae28a 100644 --- a/cpp_basics_for_STL.typ +++ b/cpp_basics_for_STL.typ @@ -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 ```