diff options
author | chriseth <chris@ethereum.org> | 2018-02-19 23:52:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-19 23:52:45 +0800 |
commit | a938e39a9d1784a91984c6959300f64734172864 (patch) | |
tree | 60ec742e40aba090ec39c3742c740f19790a6718 /docs/introduction-to-smart-contracts.rst | |
parent | dcfbcddd52cb02897a6d1748ad67a0b41d159cca (diff) | |
parent | 2b23d02c8365051fd1d87fe89cebee3a1ccf27be (diff) | |
download | dexon-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.rst | 6 |
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; } |