Skip to content

Commit 735550b

Browse files
authored
Merge pull request #12232 from Josel95/docs-address-type
fixed example address payable
2 parents 4a49e6e + b4a5270 commit 735550b

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)