mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
commit
137b214be4
@ -42,7 +42,7 @@ The following elementary types exist:
|
|||||||
|
|
||||||
- ``address``: equivalent to ``uint160``, except for the assumed interpretation and language typing.
|
- ``address``: equivalent to ``uint160``, except for the assumed interpretation and language typing.
|
||||||
|
|
||||||
- ``uint``, ``int``: synonyms for ``uint256``, ``int256`` respectively (not to be used for computing the function selector).
|
- ``uint``, ``int``: synonyms for ``uint256``, ``int256`` respectively (this shorthand not to be used for computing the function selector).
|
||||||
|
|
||||||
- ``bool``: equivalent to ``uint8`` restricted to the values 0 and 1
|
- ``bool``: equivalent to ``uint8`` restricted to the values 0 and 1
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ The following elementary types exist:
|
|||||||
|
|
||||||
- ``ufixed<M>x<N>``: unsigned variant of ``fixed<M>x<N>``.
|
- ``ufixed<M>x<N>``: unsigned variant of ``fixed<M>x<N>``.
|
||||||
|
|
||||||
- ``fixed``, ``ufixed``: synonyms for ``fixed128x19``, ``ufixed128x19`` respectively (not to be used for computing the function selector).
|
- ``fixed``, ``ufixed``: synonyms for ``fixed128x19``, ``ufixed128x19`` respectively (this shorthand not to be used for computing the function selector).
|
||||||
|
|
||||||
- ``bytes<M>``: binary type of ``M`` bytes, ``0 < M <= 32``.
|
- ``bytes<M>``: binary type of ``M`` bytes, ``0 < M <= 32``.
|
||||||
|
|
||||||
@ -58,7 +58,7 @@ The following elementary types exist:
|
|||||||
|
|
||||||
The following (fixed-size) array type exists:
|
The following (fixed-size) array type exists:
|
||||||
|
|
||||||
- ``<type>[M]``: a fixed-length array of the given fixed-length type.
|
- ``<type>[M]``: a fixed-length array of ``M`` elements, ``M > 0``, of the given type.
|
||||||
|
|
||||||
The following non-fixed-size types exist:
|
The following non-fixed-size types exist:
|
||||||
|
|
||||||
@ -66,7 +66,7 @@ The following non-fixed-size types exist:
|
|||||||
|
|
||||||
- ``string``: dynamic sized unicode string assumed to be UTF-8 encoded.
|
- ``string``: dynamic sized unicode string assumed to be UTF-8 encoded.
|
||||||
|
|
||||||
- ``<type>[]``: a variable-length array of the given fixed-length type.
|
- ``<type>[]``: a variable-length array of elements of the given type.
|
||||||
|
|
||||||
Types can be combined to a tuple by enclosing a finite non-negative number
|
Types can be combined to a tuple by enclosing a finite non-negative number
|
||||||
of them inside parentheses, separated by commas:
|
of them inside parentheses, separated by commas:
|
||||||
|
Loading…
Reference in New Issue
Block a user