From c44d568a8b8b6af850cbfb5f7601e33f9693d911 Mon Sep 17 00:00:00 2001 From: zeromus Date: Thu, 14 Apr 2016 18:28:41 -0500 Subject: [PATCH] docs typo fix: ivoked&ecoding --- doc/source/stdlib/stdiolib.rst | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/doc/source/stdlib/stdiolib.rst b/doc/source/stdlib/stdiolib.rst index 7d29644..cc69c7b 100644 --- a/doc/source/stdlib/stdiolib.rst +++ b/doc/source/stdlib/stdiolib.rst @@ -21,20 +21,20 @@ Global Symbols returns the value returned by the script or null if no value is returned. if the optional parameter 'raiseerror' is true, the compiler error handler is invoked in case of a syntax error. If raiseerror is omitted or set to false, the compiler - error handler is not ivoked. - When squirrel is compiled in unicode mode the function can handle different character ecodings, + error handler is not invoked. + When squirrel is compiled in unicode mode the function can handle different character encodings, UTF8 with and without prefix and UCS-2 prefixed(both big endian an little endian). - If the source stream is not prefixed UTF8 ecoding is used as default. + If the source stream is not prefixed UTF8 encoding is used as default. .. js:function:: loadfile(path, [raiseerror]) compiles a squirrel script or loads a precompiled one an returns it as as function. if the optional parameter 'raiseerror' is true, the compiler error handler is invoked in case of a syntax error. If raiseerror is omitted or set to false, the compiler - error handler is not ivoked. - When squirrel is compiled in unicode mode the function can handle different character ecodings, + error handler is not invoked. + When squirrel is compiled in unicode mode the function can handle different character encodings, UTF8 with and without prefix and UCS-2 prefixed(both big endian an little endian). - If the source stream is not prefixed UTF8 ecoding is used as default. + If the source stream is not prefixed UTF8 encoding is used as default. .. js:function:: writeclosuretofile(destpath, closure) @@ -230,9 +230,9 @@ Script loading and serialization :returns: an SQRESULT Compiles a squirrel script or loads a precompiled one an pushes it as closure in the stack. - When squirrel is compiled in unicode mode the function can handle different character ecodings, + When squirrel is compiled in unicode mode the function can handle different character encodings, UTF8 with and without prefix and UCS-2 prefixed(both big endian an little endian). - If the source stream is not prefixed UTF8 ecoding is used as default. + If the source stream is not prefixed UTF8 encoding is used as default. .. c:function:: SQRESULT sqstd_dofile(HSQUIRRELVM v, const SQChar* filename, SQBool retval, SQBool printerror) @@ -245,9 +245,9 @@ Script loading and serialization Compiles a squirrel script or loads a precompiled one and executes it. Optionally pushes the return value of the executed script in the stack. - When squirrel is compiled in unicode mode the function can handle different character ecodings, + When squirrel is compiled in unicode mode the function can handle different character encodings, UTF8 with and without prefix and UCS-2 prefixed(both big endian an little endian). - If the source stream is not prefixed UTF8 ecoding is used as default. :: + If the source stream is not prefixed UTF8 encoding is used as default. :: sq_pushroottable(v); //push the root table(were the globals of the script will are stored) sqstd_dofile(v, _SC("test.nut"), SQFalse, SQTrue);// also prints syntax errors if any