Sfoglia il codice sorgente

fix docs for 'unsigned right shift operator' to reference >>> instead of <<< ! also minor tidying in same file

zeromus 9 anni fa
parent
commit
09c4e7a8c1
1 ha cambiato i file con 6 aggiunte e 6 eliminazioni
  1. 6 6
      doc/source/reference/language/expressions.rst

+ 6 - 6
doc/source/reference/language/expressions.rst

@@ -221,10 +221,10 @@ Bitwise Operators
     exp:= 'exp' op 'exp'
     exp:= 'exp' op 'exp'
     exp := '~' 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
 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.
 cause an exception.
 
 
 ^^^^^^^^^^^^^^^^^^^^^
 ^^^^^^^^^^^^^^^^^^^^^
@@ -255,7 +255,7 @@ Operators precedence
 +---------------------------------------+-----------+
 +---------------------------------------+-----------+
 | ``+=, =, -=``                         | ...       |
 | ``+=, =, -=``                         | ...       |
 +---------------------------------------+-----------+
 +---------------------------------------+-----------+
-| ``,(comma operator)``                 | lowest    |
+| ``, (comma operator)``                | lowest    |
 +---------------------------------------+-----------+
 +---------------------------------------+-----------+
 
 
 .. _table_contructor:
 .. _table_contructor:
@@ -293,7 +293,7 @@ A new slot with exp1 as key and exp2 as value is created::
         [1]="I'm the value"
         [1]="I'm the value"
     }
     }
 
 
-both syntaxes can be mixed::
+Both syntaxes can be mixed::
 
 
     local table=
     local table=
     {
     {
@@ -369,6 +369,6 @@ Creates a new array.::
 
 
     a <- [] //creates an empty 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
     a <- [1,"string!",[],{}] //creates an array with 4 elements