mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #8891 from ethereum/improved-type-documentation
Changed a potentially misleading name in documentation
This commit is contained in:
commit
942ca5bdb7
@ -122,8 +122,8 @@ Global Variables
|
||||
- ``type(C).creationCode`` (``bytes memory``): creation bytecode of the given contract, see :ref:`Type Information<meta-type>`.
|
||||
- ``type(C).runtimeCode`` (``bytes memory``): runtime bytecode of the given contract, see :ref:`Type Information<meta-type>`.
|
||||
- ``type(I).interfaceId`` (``bytes4``): value containing the EIP-165 interface identifier of the given interface, see :ref:`Type Information<meta-type>`.
|
||||
- ``type(X).min`` (``X``): the minimum value representable by the integer type ``X``, see :ref:`Type Information<meta-type>`.
|
||||
- ``type(X).max`` (``X``): the maximum value representable by the integer type ``X``, see :ref:`Type Information<meta-type>`.
|
||||
- ``type(T).min`` (``T``): the minimum value representable by the integer type ``T``, see :ref:`Type Information<meta-type>`.
|
||||
- ``type(T).max`` (``T``): the maximum value representable by the integer type ``T``, see :ref:`Type Information<meta-type>`.
|
||||
|
||||
.. note::
|
||||
Do not rely on ``block.timestamp``, ``now`` and ``blockhash`` as a source of randomness,
|
||||
|
@ -329,10 +329,10 @@ for an interface type ``I``:
|
||||
interface identifier of the given interface ``I``. This identifier is defined as the ``XOR`` of all
|
||||
function selectors defined within the interface itself - excluding all inherited functions.
|
||||
|
||||
The following properties are available for an integer type ``I``:
|
||||
The following properties are available for an integer type ``T``:
|
||||
|
||||
``type(I).min``
|
||||
The smallest value representable by type ``I``.
|
||||
``type(T).min``
|
||||
The smallest value representable by type ``T``.
|
||||
|
||||
``type(I).max``
|
||||
The largest value representable by type ``I``.
|
||||
``type(T).max``
|
||||
The largest value representable by type ``T``.
|
||||
|
Loading…
Reference in New Issue
Block a user