aboutsummaryrefslogtreecommitdiffstats
path: root/docs/introduction-to-smart-contracts.rst
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-02-19 23:52:45 +0800
committerGitHub <noreply@github.com>2018-02-19 23:52:45 +0800
commita938e39a9d1784a91984c6959300f64734172864 (patch)
tree60ec742e40aba090ec39c3742c740f19790a6718 /docs/introduction-to-smart-contracts.rst
parentdcfbcddd52cb02897a6d1748ad67a0b41d159cca (diff)
parent2b23d02c8365051fd1d87fe89cebee3a1ccf27be (diff)
downloaddexon-solidity-a938e39a9d1784a91984c6959300f64734172864.tar.gz
dexon-solidity-a938e39a9d1784a91984c6959300f64734172864.tar.zst
dexon-solidity-a938e39a9d1784a91984c6959300f64734172864.zip
Merge pull request #3182 from janat08/patch-2
Update introduction-to-smart-contracts.rst
Diffstat (limited to 'docs/introduction-to-smart-contracts.rst')
-rw-r--r--docs/introduction-to-smart-contracts.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/introduction-to-smart-contracts.rst b/docs/introduction-to-smart-contracts.rst
index 6425dcaa..c297a8ad 100644
--- a/docs/introduction-to-smart-contracts.rst
+++ b/docs/introduction-to-smart-contracts.rst
@@ -118,9 +118,11 @@ that is publicly accessible. The ``address`` type is a 160-bit value
that does not allow any arithmetic operations. It is suitable for
storing addresses of contracts or keypairs belonging to external
persons. The keyword ``public`` automatically generates a function that
-allows you to access the current value of the state variable.
+allows you to access the current value of the state variable
+from outside of the contract.
Without this keyword, other contracts have no way to access the variable.
-The function will look something like this::
+The code of the function generated by the compiler is roughly equivalent
+to the following::
function minter() returns (address) { return minter; }