Merge pull request #10 from dkorolev/master

Typo: `s/would no compile/would not compile/`.
This commit is contained in:
Anthony Calandra
2016-12-24 12:04:45 -05:00
committed by GitHub

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