From ff782411f55131ad6e06a5bd33bedc2577b8fcbb Mon Sep 17 00:00:00 2001 From: Amanpatel13 <72340897+Amanpatel13@users.noreply.github.com> Date: Sun, 4 Oct 2020 17:54:06 +0530 Subject: [PATCH] Update readme.md --- readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index 88f8a516..e23e980c 100644 --- a/readme.md +++ b/readme.md @@ -33,7 +33,7 @@ techniques, working with the developer how they would expect it to work. Being native C++ application, it has some advantages over existing embedded scripting languages: -1. It uses a header-only approach, which makes it easy to integrate with +1. It uses a header-only approach, which makes it easier to integrate with existing projects. 2. It maintains type safety between your C++ application and the user scripts. 3. It supports a variety of C++ techniques including callbacks, overloaded @@ -73,7 +73,7 @@ Usage see below for an example. Once instantiated, the engine is ready to start running ChaiScript source. You -have two main options for processing ChaiScript source: a line at a time using +have two(2) main options for processing ChaiScript source: a line at a time using `chai.eval(string)` and a file at a time using `chai.eval_file(fname)` To make functions in your C++ code visible to scripts, they must be registered @@ -110,7 +110,7 @@ double function(int i, double j) return i * j; } -int main() +int main(); { chaiscript::ChaiScript chai; chai.add(chaiscript::fun(&function), "function");