瀏覽代碼

Added missing `^=` from list of assignment

In the list of the (lowest priority) Assignment Operators, `^-` was not listed, but it does exist & work.
Ulugbeg 2 年之前
父節點
當前提交
6dd9e26420
共有 1 個文件被更改,包括 67 次插入67 次删除
  1. 67 67
      tutorials/scripting/gdscript/gdscript_basics.rst

+ 67 - 67
tutorials/scripting/gdscript/gdscript_basics.rst

@@ -227,73 +227,73 @@ Operators
 
 The following is the list of supported operators and their precedence.
 
-+--------------------------------------------------------------------------------+-------------------------------------------+
-| **Operator**                                                                   | **Description**                           |
-+================================================================================+===========================================+
-| ``x[index]``                                                                   | Subscription (highest priority)           |
-+--------------------------------------------------------------------------------+-------------------------------------------+
-| ``x.attribute``                                                                | Attribute reference                       |
-+--------------------------------------------------------------------------------+-------------------------------------------+
-| ``foo()``                                                                      | Function call                             |
-+--------------------------------------------------------------------------------+-------------------------------------------+
-| ``is``                                                                         | Instance type checker                     |
-+--------------------------------------------------------------------------------+-------------------------------------------+
-| ``**``                                                                         | Power operator                            |
-|                                                                                |                                           |
-|                                                                                | Multiplies value by itself ``x`` times,   |
-|                                                                                | similar to calling ``pow`` built-in       |
-|                                                                                | function                                  |
-+--------------------------------------------------------------------------------+-------------------------------------------+
-| ``~``                                                                          | Bitwise NOT                               |
-+--------------------------------------------------------------------------------+-------------------------------------------+
-| ``-x``                                                                         | Negative / Unary negation                 |
-+--------------------------------------------------------------------------------+-------------------------------------------+
-| ``*`` ``/`` ``%``                                                              | Multiplication / Division / Remainder     |
-|                                                                                |                                           |
-|                                                                                | These operators have the same behavior    |
-|                                                                                | as C++. Integer division is truncated     |
-|                                                                                | rather than returning a fractional        |
-|                                                                                | number, and the % operator is only        |
-|                                                                                | available for ints (``fmod`` for floats), |
-|                                                                                | and is additionally used for Format       |
-|                                                                                | Strings                                   |
-+--------------------------------------------------------------------------------+-------------------------------------------+
-| ``+``                                                                          | Addition / Concatenation of arrays        |
-+--------------------------------------------------------------------------------+-------------------------------------------+
-| ``-``                                                                          | Subtraction                               |
-+--------------------------------------------------------------------------------+-------------------------------------------+
-| ``<<`` ``>>``                                                                  | Bit shifting                              |
-+--------------------------------------------------------------------------------+-------------------------------------------+
-| ``&``                                                                          | Bitwise AND                               |
-+--------------------------------------------------------------------------------+-------------------------------------------+
-| ``^``                                                                          | Bitwise XOR                               |
-+--------------------------------------------------------------------------------+-------------------------------------------+
-| ``|``                                                                          | Bitwise OR                                |
-+--------------------------------------------------------------------------------+-------------------------------------------+
-| ``<`` ``>`` ``==`` ``!=`` ``>=`` ``<=``                                        | Comparisons                               |
-+--------------------------------------------------------------------------------+-------------------------------------------+
-| ``in``                                                                         | Inclusion checker (when used with         |
-|                                                                                | control flow keywords or in a             |
-|                                                                                | standalone expression)                    |
-|                                                                                |                                           |
-|                                                                                | Content iterator (when used with the      |
-|                                                                                | for_ keyword)                             |
-+--------------------------------------------------------------------------------+-------------------------------------------+
-| ``not`` ``!``                                                                  | Boolean NOT and its                       |
-|                                                                                | :ref:`aliases<boolean_operators>`         |
-+--------------------------------------------------------------------------------+-------------------------------------------+
-| ``and`` ``&&``                                                                 | Boolean AND and its                       |
-|                                                                                | :ref:`aliases<boolean_operators>`         |
-+--------------------------------------------------------------------------------+-------------------------------------------+
-| ``or`` ``||``                                                                  | Boolean OR and its                        |
-|                                                                                | :ref:`aliases<boolean_operators>`         |
-+--------------------------------------------------------------------------------+-------------------------------------------+
-| ``if x else``                                                                  | Ternary if/else                           |
-+--------------------------------------------------------------------------------+-------------------------------------------+
-| ``as``                                                                         | Type casting                              |
-+--------------------------------------------------------------------------------+-------------------------------------------+
-| ``=`` ``+=`` ``-=`` ``*=`` ``/=`` ``%=`` ``**=`` ``&=`` ``|=`` ``<<=`` ``>>=`` | Assignment (lowest priority)              |
-+--------------------------------------------------------------------------------+-------------------------------------------+
++---------------------------------------------------------------------------------------+-------------------------------------------+
+| **Operator**                                                                          | **Description**                           |
++=======================================================================================+===========================================+
+| ``x[index]``                                                                          | Subscription (highest priority)           |
++---------------------------------------------------------------------------------------+-------------------------------------------+
+| ``x.attribute``                                                                       | Attribute reference                       |
++---------------------------------------------------------------------------------------+-------------------------------------------+
+| ``foo()``                                                                             | Function call                             |
++---------------------------------------------------------------------------------------+-------------------------------------------+
+| ``is``                                                                                | Instance type checker                     |
++---------------------------------------------------------------------------------------+-------------------------------------------+
+| ``**``                                                                                | Power operator                            |
+|                                                                                       |                                           |
+|                                                                                       | Multiplies value by itself ``x`` times,   |
+|                                                                                       | similar to calling ``pow`` built-in       |
+|                                                                                       | function                                  |
++---------------------------------------------------------------------------------------+-------------------------------------------+
+| ``~``                                                                                 | Bitwise NOT                               |
++---------------------------------------------------------------------------------------+-------------------------------------------+
+| ``-x``                                                                                | Negative / Unary negation                 |
++---------------------------------------------------------------------------------------+-------------------------------------------+
+| ``*`` ``/`` ``%``                                                                     | Multiplication / Division / Remainder     |
+|                                                                                       |                                           |
+|                                                                                       | These operators have the same behavior    |
+|                                                                                       | as C++. Integer division is truncated     |
+|                                                                                       | rather than returning a fractional        |
+|                                                                                       | number, and the % operator is only        |
+|                                                                                       | available for ints (``fmod`` for floats), |
+|                                                                                       | and is additionally used for Format       |
+|                                                                                       | Strings                                   |
++---------------------------------------------------------------------------------------+-------------------------------------------+
+| ``+``                                                                                 | Addition / Concatenation of arrays        |
++---------------------------------------------------------------------------------------+-------------------------------------------+
+| ``-``                                                                                 | Subtraction                               |
++---------------------------------------------------------------------------------------+-------------------------------------------+
+| ``<<`` ``>>``                                                                         | Bit shifting                              |
++---------------------------------------------------------------------------------------+-------------------------------------------+
+| ``&``                                                                                 | Bitwise AND                               |
++---------------------------------------------------------------------------------------+-------------------------------------------+
+| ``^``                                                                                 | Bitwise XOR                               |
++---------------------------------------------------------------------------------------+-------------------------------------------+
+| ``|``                                                                                 | Bitwise OR                                |
++---------------------------------------------------------------------------------------+-------------------------------------------+
+| ``<`` ``>`` ``==`` ``!=`` ``>=`` ``<=``                                               | Comparisons                               |
++---------------------------------------------------------------------------------------+-------------------------------------------+
+| ``in``                                                                                | Inclusion checker (when used with         |
+|                                                                                       | control flow keywords or in a             |
+|                                                                                       | standalone expression)                    |
+|                                                                                       |                                           |
+|                                                                                       | Content iterator (when used with the      |
+|                                                                                       | for_ keyword)                             |
++---------------------------------------------------------------------------------------+-------------------------------------------+
+| ``not`` ``!``                                                                         | Boolean NOT and its                       |
+|                                                                                       | :ref:`aliases<boolean_operators>`         |
++---------------------------------------------------------------------------------------+-------------------------------------------+
+| ``and`` ``&&``                                                                        | Boolean AND and its                       |
+|                                                                                       | :ref:`aliases<boolean_operators>`         |
++---------------------------------------------------------------------------------------+-------------------------------------------+
+| ``or`` ``||``                                                                         | Boolean OR and its                        |
+|                                                                                       | :ref:`aliases<boolean_operators>`         |
++---------------------------------------------------------------------------------------+-------------------------------------------+
+| ``if x else``                                                                         | Ternary if/else                           |
++---------------------------------------------------------------------------------------+-------------------------------------------+
+| ``as``                                                                                | Type casting                              |
++---------------------------------------------------------------------------------------+-------------------------------------------+
+| ``=`` ``+=`` ``-=`` ``*=`` ``/=`` ``%=`` ``**=`` ``&=`` ``^=`` ``|=`` ``<<=`` ``>>=`` | Assignment (lowest priority)              |
++---------------------------------------------------------------------------------------+-------------------------------------------+
 
 Literals
 ~~~~~~~~