From c21c21dfda816cde179e7e23e50780919242a6f3 Mon Sep 17 00:00:00 2001 From: Glen Fraser Date: Fri, 8 May 2015 15:57:59 +0200 Subject: [PATCH] Fixed minor typos in cheatsheet --- cheatsheet.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cheatsheet.md b/cheatsheet.md index 8ec408a..16bed0a 100644 --- a/cheatsheet.md +++ b/cheatsheet.md @@ -152,7 +152,7 @@ p(5, 6); // calls chaiscript's '+' function, returning 11 ``` ``` -auto p = chai.eval>(fun(x,y) { to_string(x) + to_string(y); }); +auto p = chai.eval>("fun(x,y) { to_string(x) + to_string(y); }"); p(3,4.2); // evaluates the lambda function, returning the string "34.2" to C++ ``` @@ -183,7 +183,7 @@ var m = ["a":1, "b":2]; // map of string:value pairs ``` Floating point values default to `double` type and integers default to `int` type. All C++ suffixes -such as `f`, `ll`, `u` as well as scientific notion is supported +such as `f`, `ll`, `u` as well as scientific notation are supported ``` 1.0 // double