diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-03 04:05:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-03 04:05:26 +0800 |
commit | bea59b0ca7fd497baf82e5960649854dff268d8a (patch) | |
tree | 67e8b6db98ba429305787a0f3729235b6a1192ab | |
parent | 4220f01688e31c206c2b2ea472db42161d780a26 (diff) | |
parent | 51a150e82ae04c7470ad1aa8fdc07f45baf79b59 (diff) | |
download | dexon-solidity-bea59b0ca7fd497baf82e5960649854dff268d8a.tar.gz dexon-solidity-bea59b0ca7fd497baf82e5960649854dff268d8a.tar.zst dexon-solidity-bea59b0ca7fd497baf82e5960649854dff268d8a.zip |
Merge pull request #1638 from willnwhite/patch-1
Other contracts can't write to a public variable
-rw-r--r-- | docs/introduction-to-smart-contracts.rst | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/introduction-to-smart-contracts.rst b/docs/introduction-to-smart-contracts.rst index 4c134abc..524cbcb0 100644 --- a/docs/introduction-to-smart-contracts.rst +++ b/docs/introduction-to-smart-contracts.rst @@ -109,8 +109,7 @@ 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 -and only the code of this contract can write to it. +Without this keyword, other contracts have no way to access the variable. The function will look something like this:: function minter() returns (address) { return minter; } |