Merge pull request #235 from mlamby/patch-1

Fix user_type example in cheatsheet.md
This commit is contained in:
Jason Turner 2016-01-11 20:39:36 -07:00
commit 452f71b51f

View File

@ -77,7 +77,7 @@ chai.add(chaiscript::constructor<MyType (const MyType &)>(), "MyType");
It's not strictly necessary to add types, but it helps with many things. Cloning, better errors, etc.
```
chai.add(chaiscript::user_type<MyClass>, "MyClass");
chai.add(chaiscript::user_type<MyClass>(), "MyClass");
```
## Adding Type Conversions