Skip to content

Commit b4a5270

Browse files
author
José López
committed
fixed example address payable
1 parent 4a49e6e commit b4a5270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/types/value-types.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ and to send Ether (in units of wei) to a payable address using the ``transfer``
241241
.. code-block:: solidity
242242
:force:
243243
244-
address payable x = address(0x123);
244+
address payable x = payable(0x123);
245245
address myAddress = address(this);
246246
if (x.balance < 10 && myAddress.balance >= 10) x.transfer(10);
247247

0 commit comments

Comments
 (0)