mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-07 01:06:54 +08:00
Merge pull request #484 from medithe/patch-1
Update cheatsheet.md: Adding Lambda correction.
This commit is contained in:
commit
2890f95597
@ -66,7 +66,7 @@ chai.add(chaiscript::fun(static_cast<int(Derived::*)>(&Derived::data)), "data");
|
|||||||
|
|
||||||
```
|
```
|
||||||
chai.add(
|
chai.add(
|
||||||
chaiscript::fun<std::string (bool)>(
|
chaiscript::fun<std::function<std::string (bool)>>(
|
||||||
[](bool type) {
|
[](bool type) {
|
||||||
if (type) { return "x"; }
|
if (type) { return "x"; }
|
||||||
else { return "y"; }
|
else { return "y"; }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user