aboutsummaryrefslogtreecommitdiffstats
path: root/docs/contracts.rst
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-08-10 03:10:53 +0800
committerchriseth <chris@ethereum.org>2018-08-14 21:50:46 +0800
commit8a06000a307e7f2a72f9bfdc114d84fab8ad2ebf (patch)
treeb3196dc6f52ab5e60bcd09533a27194b52e68c08 /docs/contracts.rst
parent6a5a187d83d97764fc6f77e392cdb2b9d8d6bb72 (diff)
downloaddexon-solidity-8a06000a307e7f2a72f9bfdc114d84fab8ad2ebf.tar.gz
dexon-solidity-8a06000a307e7f2a72f9bfdc114d84fab8ad2ebf.tar.zst
dexon-solidity-8a06000a307e7f2a72f9bfdc114d84fab8ad2ebf.zip
Update documentation.
Diffstat (limited to 'docs/contracts.rst')
-rw-r--r--docs/contracts.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/contracts.rst b/docs/contracts.rst
index 7cf715fa..ca15d814 100644
--- a/docs/contracts.rst
+++ b/docs/contracts.rst
@@ -137,16 +137,16 @@ Functions have to be specified as being ``external``,
For state variables, ``external`` is not possible.
``external``:
- External functions are part of the contract
- interface, which means they can be called from other contracts and
+ External functions are part of the contract interface,
+ which means they can be called from other contracts and
via transactions. An external function ``f`` cannot be called
internally (i.e. ``f()`` does not work, but ``this.f()`` works).
External functions are sometimes more efficient when
they receive large arrays of data.
``public``:
- Public functions are part of the contract
- interface and can be either called internally or via
+ Public functions are part of the contract interface
+ and can be either called internally or via
messages. For public state variables, an automatic getter
function (see below) is generated.