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