From d02fa17be2157783ba84c2e01bfbdf6bea70f576 Mon Sep 17 00:00:00 2001 From: zeromus Date: Thu, 14 Apr 2016 18:07:37 -0500 Subject: [PATCH] small typo and grammar fixes --- doc/source/reference/api/object_creation_and_handling.rst | 2 +- doc/source/reference/api/stack_operations.rst | 2 +- .../embedding/tables_and_arrays_manipulation.rst | 2 +- .../reference/language/constants_and_enumerations.rst | 8 ++++---- doc/source/stdlib/stdbloblib.rst | 2 +- doc/source/stdlib/stdiolib.rst | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/doc/source/reference/api/object_creation_and_handling.rst b/doc/source/reference/api/object_creation_and_handling.rst index 85daf1b..189e404 100644 --- a/doc/source/reference/api/object_creation_and_handling.rst +++ b/doc/source/reference/api/object_creation_and_handling.rst @@ -455,7 +455,7 @@ pushes a null value into the stack :param HSQUIRRELVM v: the target VM :param const SQChar * s: pointer to the string that has to be pushed - :param SQInteger len: lenght of the string pointed by s + :param SQInteger len: length of the string pointed by s :remarks: if the parameter len is less than 0 the VM will calculate the length using strlen(s) pushes a string in the stack diff --git a/doc/source/reference/api/stack_operations.rst b/doc/source/reference/api/stack_operations.rst index 99153cd..608ebed 100644 --- a/doc/source/reference/api/stack_operations.rst +++ b/doc/source/reference/api/stack_operations.rst @@ -91,7 +91,7 @@ removes an element from an arbitrary position in the stack :param SQInteger nsize: required stack size :returns: a SQRESULT -ensure that the stack space left is at least of a specified size.If the stack is smaller it will automatically grow. if there's a memtamethod currently running the function will fail and the stack will not be resized, this situatuation has to be considered a "stack overflow". +ensure that the stack space left is at least of a specified size.If the stack is smaller it will automatically grow. if there's a metamethod currently running the function will fail and the stack will not be resized, this situatuation has to be considered a "stack overflow". diff --git a/doc/source/reference/embedding/tables_and_arrays_manipulation.rst b/doc/source/reference/embedding/tables_and_arrays_manipulation.rst index fed66cf..8378a10 100644 --- a/doc/source/reference/embedding/tables_and_arrays_manipulation.rst +++ b/doc/source/reference/embedding/tables_and_arrays_manipulation.rst @@ -47,7 +47,7 @@ To get a value from an array or table:: SQRESULT sq_get(HSQUIRRELVM v,SQInteger idx); -To get or set a value from a table without employ delegation:: +To get or set a value from a table without employing delegation:: SQRESULT sq_rawget(HSQUIRRELVM v,SQInteger idx); SQRESULT sq_rawset(HSQUIRRELVM v,SQInteger idx); diff --git a/doc/source/reference/language/constants_and_enumerations.rst b/doc/source/reference/language/constants_and_enumerations.rst index 7039b62..136fd16 100644 --- a/doc/source/reference/language/constants_and_enumerations.rst +++ b/doc/source/reference/language/constants_and_enumerations.rst @@ -37,17 +37,17 @@ Constants will shadow any global slot with the same name( the global slot will r local x = foobar * 2; --------------- -Enumrations +Enumerations --------------- .. index:: - single: Enumrations + single: Enumerations -As Constants, Enumerations bind a specific value to a name. Enumerations are also evaluated compile time +As Constants, Enumerations bind a specific value to a name. Enumerations are also evaluated at compile time and their value cannot be changed. An enum declaration introduces a new enumeration into the program. -Enumerations values can only be integers, floats or string literals. No expression are allowed.:: +Enumeration values can only be integers, floats or string literals. No expression are allowed.:: enum Stuff { first, //this will be 0 diff --git a/doc/source/stdlib/stdbloblib.rst b/doc/source/stdlib/stdbloblib.rst index b8c809a..07543f9 100644 --- a/doc/source/stdlib/stdbloblib.rst +++ b/doc/source/stdlib/stdbloblib.rst @@ -60,7 +60,7 @@ A blob can also be accessed byte by byte through the `[]` operator. .. js:function:: blob.len() - returns the lenght of the stream + returns the length of the stream .. js:function:: blob.readblob(size) diff --git a/doc/source/stdlib/stdiolib.rst b/doc/source/stdlib/stdiolib.rst index 26660f7..7d29644 100644 --- a/doc/source/stdlib/stdiolib.rst +++ b/doc/source/stdlib/stdiolib.rst @@ -83,7 +83,7 @@ The file class .. js:function:: file.len() - returns the lenght of the stream + returns the length of the stream .. js:function:: file.readblob(size)