8000 Fix user_type example in cheatsheet.md · ChaiScript/ChaiScript@a97cb15 · GitHub
[go: up one dir, main page]

Skip to content

Commit a97cb15

Browse files
committed
Fix user_type example in cheatsheet.md
Fixed example code as chaiscript::user_type is a function.
1 parent 21048b9 commit a97cb15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cheatsheet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ chai.add(chaiscript::constructor<MyType (const MyType &)>(), "MyType");
7777
It's not strictly necessary to add types, but it helps with many things. Cloning, better errors, etc.
7878

7979
```
80-
chai.add(chaiscript::user_type<MyClass>, "MyClass");
80+
chai.add(chaiscript::user_type<MyClass>(), "MyClass");
8181
```
8282

8383
## Adding Type Conversions

0 commit comments

Comments
 (0)
0