Typo: s/would no compile/would not compile/.

This commit is contained in:
Dima
2016-12-23 21:52:11 -08:00
parent 78e63e17a6
commit 317894a4db

View File

@@ -393,7 +393,7 @@ int factory(int i) { return i * 10; }
auto f = [x = factory(2)] { return x; }; // returns 20
auto generator = [x = 0] () mutable {
// this would no compile without 'mutable' as we are modifying x on each call
// this would not compile without 'mutable' as we are modifying x on each call
return x++;
};
auto a = generator(); // == 0