Merge pull request #484 from medithe/patch-1

Update cheatsheet.md: Adding Lambda correction.
This commit is contained in:
Rob Loach 2019-04-25 18:03:11 -04:00 committed by GitHub
commit 2890f95597
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ chai.add(chaiscript::fun(static_cast<int(Derived::*)>(&Derived::data)), "data");
```
chai.add(
chaiscript::fun<std::string (bool)>(
chaiscript::fun<std::function<std::string (bool)>>(
[](bool type) {
if (type) { return "x"; }
else { return "y"; }