Update documentation.

This commit is contained in:
chriseth
2018-08-14 15:50:46 +02:00
parent 6a5a187d83
commit 8a06000a30
4 changed files with 100 additions and 39 deletions
+4 -4
View File
@@ -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.