mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #6272 from ethereum/docs-op-prec
[DOCS] Change conditional operator precedence
This commit is contained in:
commit
6f14386da7
@ -336,12 +336,12 @@ The following is the order of precedence for operators, listed in order of evalu
|
|||||||
| *13* | Logical OR | ``||`` |
|
| *13* | Logical OR | ``||`` |
|
||||||
+------------+-------------------------------------+--------------------------------------------+
|
+------------+-------------------------------------+--------------------------------------------+
|
||||||
| *14* | Ternary operator | ``<conditional> ? <if-true> : <if-false>`` |
|
| *14* | Ternary operator | ``<conditional> ? <if-true> : <if-false>`` |
|
||||||
+------------+-------------------------------------+--------------------------------------------+
|
+ +-------------------------------------+--------------------------------------------+
|
||||||
| *15* | Assignment operators | ``=``, ``|=``, ``^=``, ``&=``, ``<<=``, |
|
| | Assignment operators | ``=``, ``|=``, ``^=``, ``&=``, ``<<=``, |
|
||||||
| | | ``>>=``, ``+=``, ``-=``, ``*=``, ``/=``, |
|
| | | ``>>=``, ``+=``, ``-=``, ``*=``, ``/=``, |
|
||||||
| | | ``%=`` |
|
| | | ``%=`` |
|
||||||
+------------+-------------------------------------+--------------------------------------------+
|
+------------+-------------------------------------+--------------------------------------------+
|
||||||
| *16* | Comma operator | ``,`` |
|
| *15* | Comma operator | ``,`` |
|
||||||
+------------+-------------------------------------+--------------------------------------------+
|
+------------+-------------------------------------+--------------------------------------------+
|
||||||
|
|
||||||
.. index:: assert, block, coinbase, difficulty, number, block;number, timestamp, block;timestamp, msg, data, gas, sender, value, now, gas price, origin, revert, require, keccak256, ripemd160, sha256, ecrecover, addmod, mulmod, cryptography, this, super, selfdestruct, balance, send
|
.. index:: assert, block, coinbase, difficulty, number, block;number, timestamp, block;timestamp, msg, data, gas, sender, value, now, gas price, origin, revert, require, keccak256, ripemd160, sha256, ecrecover, addmod, mulmod, cryptography, this, super, selfdestruct, balance, send
|
||||||
|
Loading…
Reference in New Issue
Block a user