From a97cb1530df257e0bf9bd4b0380f388302cc95f4 Mon Sep 17 00:00:00 2001 From: Michael Lamb Date: Fri, 8 Jan 2016 14:23:09 +1100 Subject: [PATCH] Fix user_type example in cheatsheet.md Fixed example code as chaiscript::user_type is a function. --- cheatsheet.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cheatsheet.md b/cheatsheet.md index 5e78553..eca67f0 100644 --- a/cheatsheet.md +++ b/cheatsheet.md @@ -77,7 +77,7 @@ chai.add(chaiscript::constructor(), "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"); +chai.add(chaiscript::user_type(), "MyClass"); ``` ## Adding Type Conversions