From 08abf41dfbf08342398405649d901306dd8974d4 Mon Sep 17 00:00:00 2001 From: Stephen Berry Date: Tue, 18 Oct 2016 09:37:41 -0500 Subject: [PATCH] Another cheatsheet.md namespace update --- cheatsheet.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cheatsheet.md b/cheatsheet.md index 4fe33ff8..cbc78bfa 100644 --- a/cheatsheet.md +++ b/cheatsheet.md @@ -128,14 +128,12 @@ math["sin"] = chaiscript::var(chaiscript::fun([](const double x) { return sin(x) chai.register_namespace(math, "math"); ``` -Namespaces are imported to make them available for scripting - -Importing via C++ (_not generally recommended_) +Import namespace via C++ (_not generally recommended_) ``` chai.import("math"); ``` -Importing via ChaiScript (recommended) +Import namespace via ChaiScript (_recommended_) ``` import("math") print(math.pi) // prints 3.14159