From 09c4e7a8c1e0c952110e2032d9304b0e1b8183d6 Mon Sep 17 00:00:00 2001 From: zeromus Date: Thu, 12 May 2016 11:22:41 -0500 Subject: [PATCH] fix docs for 'unsigned right shift operator' to reference >>> instead of <<< ! also minor tidying in same file --- doc/source/reference/language/expressions.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/source/reference/language/expressions.rst b/doc/source/reference/language/expressions.rst index d84367a..7b9683d 100644 --- a/doc/source/reference/language/expressions.rst +++ b/doc/source/reference/language/expressions.rst @@ -221,10 +221,10 @@ Bitwise Operators exp:= 'exp' op 'exp' exp := '~' exp -Squirrel supports the standard c-like bit wise operators ``&, |, ^, ~, <<, >>`` plus the unsigned -right shift operator ``<<<``. The unsigned right shift works exactly like the normal right shift operator(``<<``) +Squirrel supports the standard C-like bitwise operators ``&, |, ^, ~, <<, >>`` plus the unsigned +right shift operator ``>>>``. The unsigned right shift works exactly like the normal right shift operator(``>>``) except for treating the left operand as an unsigned integer, so is not affected by the sign. Those operators -only work on integers values, passing of any other operand type to these operators will +only work on integer values; passing of any other operand type to these operators will cause an exception. ^^^^^^^^^^^^^^^^^^^^^ @@ -255,7 +255,7 @@ Operators precedence +---------------------------------------+-----------+ | ``+=, =, -=`` | ... | +---------------------------------------+-----------+ -| ``,(comma operator)`` | lowest | +| ``, (comma operator)`` | lowest | +---------------------------------------+-----------+ .. _table_contructor: @@ -293,7 +293,7 @@ A new slot with exp1 as key and exp2 as value is created:: [1]="I'm the value" } -both syntaxes can be mixed:: +Both syntaxes can be mixed:: local table= { @@ -369,6 +369,6 @@ Creates a new array.:: a <- [] //creates an empty array -arrays can be initialized with values during the construction:: +Arrays can be initialized with values during the construction:: a <- [1,"string!",[],{}] //creates an array with 4 elements \ No newline at end of file