diff options
author | chriseth <chris@ethereum.org> | 2018-02-19 23:52:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-19 23:52:37 +0800 |
commit | 2b23d02c8365051fd1d87fe89cebee3a1ccf27be (patch) | |
tree | fa07cd44044e1ae36e25dcd0edbe73a63353e662 | |
parent | dfac04d1394ff68d68b99c13edf919007f8bb038 (diff) | |
download | dexon-solidity-2b23d02c8365051fd1d87fe89cebee3a1ccf27be.tar dexon-solidity-2b23d02c8365051fd1d87fe89cebee3a1ccf27be.tar.gz dexon-solidity-2b23d02c8365051fd1d87fe89cebee3a1ccf27be.tar.bz2 dexon-solidity-2b23d02c8365051fd1d87fe89cebee3a1ccf27be.tar.lz dexon-solidity-2b23d02c8365051fd1d87fe89cebee3a1ccf27be.tar.xz dexon-solidity-2b23d02c8365051fd1d87fe89cebee3a1ccf27be.tar.zst dexon-solidity-2b23d02c8365051fd1d87fe89cebee3a1ccf27be.zip |
Update introduction-to-smart-contracts.rst
-rw-r--r-- | docs/introduction-to-smart-contracts.rst | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/introduction-to-smart-contracts.rst b/docs/introduction-to-smart-contracts.rst index 1af2014c..d022004e 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. -Without this keyword, other contracts have no way to access the variable, - but raw implementation would look something like this:: +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 code of the function generated by the compiler is roughly equivalent +to the following:: function minter() returns (address) { return minter; } |