diff options
author | chriseth <chris@ethereum.org> | 2018-11-07 21:59:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-07 21:59:54 +0800 |
commit | 0a96f091ab63e8d77106e00590a442c59714eecb (patch) | |
tree | 1fad408846c4ebaf5b9a38bacc59e0cc161c2669 | |
parent | a459b8c81ec92f39be67c2d373d120eb86140e00 (diff) | |
parent | 5df83346f36f7da62d914b8f4fc7036176292366 (diff) | |
download | dexon-solidity-0a96f091ab63e8d77106e00590a442c59714eecb.tar.gz dexon-solidity-0a96f091ab63e8d77106e00590a442c59714eecb.tar.zst dexon-solidity-0a96f091ab63e8d77106e00590a442c59714eecb.zip |
Merge pull request #5346 from ethereum/chriseth-patch-4
[DOCS] Integers cannot be implicitly converted to address
-rw-r--r-- | docs/types.rst | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/types.rst b/docs/types.rst index bd5d1734..34b94b88 100644 --- a/docs/types.rst +++ b/docs/types.rst @@ -1225,7 +1225,6 @@ is possible if it makes sense semantically and no information is lost: ``uint8`` is convertible to ``uint16`` and ``int128`` to ``int256``, but ``int8`` is not convertible to ``uint256`` (because ``uint256`` cannot hold e.g. ``-1``). -Any integer type that can be converted to ``uint160`` can also be converted to ``address``. For more details, please consult the sections about the types themselves. @@ -1335,4 +1334,4 @@ Addresses As described in :ref:`address_literals`, hex literals of the correct size that pass the checksum test are of ``address`` type. No other literals can be implicitly converted to the ``address`` type. -Explicit conversions from ``bytes20`` or any integer type to ``address`` results in ``address payable``.
\ No newline at end of file +Explicit conversions from ``bytes20`` or any integer type to ``address`` result in ``address payable``. |