Procházet zdrojové kódy

small typo and grammar fixes

zeromus před 9 roky
rodič
revize
d02fa17be2

+ 1 - 1
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

+ 1 - 1
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".
 
 
 

+ 1 - 1
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);

+ 4 - 4
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

+ 1 - 1
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)
 

+ 1 - 1
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)