Skip to content

Commit 41eb4bd

Browse files
author
Leonardo Alt
committed
Fix doc example
1 parent 3327f37 commit 41eb4bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/contracts/functions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ Like any function, the fallback function can execute complex operations as long
341341
// address(test) will not allow to call ``send`` directly, since ``test`` has no payable
342342
// fallback function.
343343
// It has to be converted to the ``address payable`` type to even allow calling ``send`` on it.
344-
address payable testPayable = payable(address(test)));
344+
address payable testPayable = payable(address(test));
345345

346346
// If someone sends Ether to that contract,
347347
// the transfer will fail, i.e. this returns false here.

0 commit comments

Comments
 (0)