aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-08-09 21:40:51 +0800
committerGitHub <noreply@github.com>2018-08-09 21:40:51 +0800
commit5535fc0526788eb944589d255b1be842786287bf (patch)
tree6481da66f2b9d85b359ba1b622217151c7d4907b
parent1f21136737bb5a9129cfb40f331fbc6e9d3036a2 (diff)
parentc45de14ba82a30139dddbcdc68fa059c5ec3917e (diff)
downloaddexon-solidity-5535fc0526788eb944589d255b1be842786287bf.tar.gz
dexon-solidity-5535fc0526788eb944589d255b1be842786287bf.tar.zst
dexon-solidity-5535fc0526788eb944589d255b1be842786287bf.zip
Merge pull request #4786 from gftea/develop
add "ref for text "fallback function" in Types.rst
-rw-r--r--docs/types.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/types.rst b/docs/types.rst
index 208966be..bcd3ce9c 100644
--- a/docs/types.rst
+++ b/docs/types.rst
@@ -134,7 +134,7 @@ and to send Ether (in units of wei) to an address using the ``transfer`` functio
if (x.balance < 10 && myAddress.balance >= 10) x.transfer(10);
.. note::
- If ``x`` is a contract address, its code (more specifically: its fallback function, if present) will be executed together with the ``transfer`` call (this is a feature of the EVM and cannot be prevented). If that execution runs out of gas or fails in any way, the Ether transfer will be reverted and the current contract will stop with an exception.
+ If ``x`` is a contract address, its code (more specifically: its :ref:`fallback-function`, if present) will be executed together with the ``transfer`` call (this is a feature of the EVM and cannot be prevented). If that execution runs out of gas or fails in any way, the Ether transfer will be reverted and the current contract will stop with an exception.
* ``send``