Fix user_type example in cheatsheet.md

Fixed example code as chaiscript::user_type is a function.
This commit is contained in:
Michael Lamb 2016-01-08 14:23:09 +11:00
parent 21048b9e65
commit a97cb1530d

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. 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 ## Adding Type Conversions