From 3c4098da84e4cbdb6591fd8d48b0f16bc1ccba3b Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 13 Jun 2016 17:20:11 -0500 Subject: [PATCH] small docs fixes. small typo fixes in sqapi.cpp error messages --- doc/source/reference/api/object_manipulation.rst | 6 +++--- doc/source/reference/language/classes.rst | 4 ++-- squirrel/sqapi.cpp | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/source/reference/api/object_manipulation.rst b/doc/source/reference/api/object_manipulation.rst index 4d5288d..099fc59 100644 --- a/doc/source/reference/api/object_manipulation.rst +++ b/doc/source/reference/api/object_manipulation.rst @@ -91,7 +91,7 @@ resizes the array at the position idx in the stack. :returns: a SQRESULT :remarks: Only works on arrays. -reverse an array in place. +reverses an array in place. @@ -106,7 +106,7 @@ reverse an array in place. :returns: a SQRESULT :remarks: Only works on tables and arrays. -clears all the element of the table/array at position idx in the stack. +clears all the elements of the table/array at position idx in the stack. @@ -120,7 +120,7 @@ clears all the element of the table/array at position idx in the stack. :param SQInteger idx: index of the target object in the stack :returns: a SQRESULT -Clones the table, array or class instance at the position idx, clones it and pushes the new object in the stack. +pushes a clone of the table, array, or class instance at the position idx. diff --git a/doc/source/reference/language/classes.rst b/doc/source/reference/language/classes.rst index 7637f5b..81ee4c4 100644 --- a/doc/source/reference/language/classes.rst +++ b/doc/source/reference/language/classes.rst @@ -46,7 +46,7 @@ For instance: :: } -the previous code examples is a syntactic sugar for: :: +the previous code example is a syntactic sugar for: :: Foo <- class { //constructor @@ -67,7 +67,7 @@ the previous code examples is a syntactic sugar for: :: } -in order to emulate namespaces, is also possible to declare something like this:: +in order to emulate namespaces, it is also possible to declare something like this:: //just 2 regular nested tables FakeNamespace <- { diff --git a/squirrel/sqapi.cpp b/squirrel/sqapi.cpp index 4dc2a82..034e7be 100644 --- a/squirrel/sqapi.cpp +++ b/squirrel/sqapi.cpp @@ -510,7 +510,7 @@ SQRESULT sq_setclosureroot(HSQUIRRELVM v,SQInteger idx) v->Pop(); return SQ_OK; } - return sq_throwerror(v, _SC("ivalid type")); + return sq_throwerror(v, _SC("invalid type")); } SQRESULT sq_getclosureroot(HSQUIRRELVM v,SQInteger idx) @@ -558,7 +558,7 @@ SQRESULT sq_setroottable(HSQUIRRELVM v) v->Pop(); return SQ_OK; } - return sq_throwerror(v, _SC("ivalid type")); + return sq_throwerror(v, _SC("invalid type")); } SQRESULT sq_setconsttable(HSQUIRRELVM v) @@ -569,7 +569,7 @@ SQRESULT sq_setconsttable(HSQUIRRELVM v) v->Pop(); return SQ_OK; } - return sq_throwerror(v, _SC("ivalid type, expected table")); + return sq_throwerror(v, _SC("invalid type, expected table")); } void sq_setforeignptr(HSQUIRRELVM v,SQUserPointer p)