aboutsummaryrefslogtreecommitdiffstats
path: root/docs/contracts.rst
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-12-14 23:22:32 +0800
committerchriseth <c@ethdev.com>2015-12-14 23:22:52 +0800
commit5622011bc557d1dde88ac0dd1456441fef6fb7d8 (patch)
tree7110472994e809fb21b27d5d00d15994290df5b3 /docs/contracts.rst
parente7098958d00dd6e7618c2283168ddfa11ab8ded3 (diff)
downloaddexon-solidity-5622011bc557d1dde88ac0dd1456441fef6fb7d8.tar
dexon-solidity-5622011bc557d1dde88ac0dd1456441fef6fb7d8.tar.gz
dexon-solidity-5622011bc557d1dde88ac0dd1456441fef6fb7d8.tar.bz2
dexon-solidity-5622011bc557d1dde88ac0dd1456441fef6fb7d8.tar.lz
dexon-solidity-5622011bc557d1dde88ac0dd1456441fef6fb7d8.tar.xz
dexon-solidity-5622011bc557d1dde88ac0dd1456441fef6fb7d8.tar.zst
dexon-solidity-5622011bc557d1dde88ac0dd1456441fef6fb7d8.zip
Note about private note being invisible.
Diffstat (limited to 'docs/contracts.rst')
-rw-r--r--docs/contracts.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/contracts.rst b/docs/contracts.rst
index 9ff9f0f5..16809586 100644
--- a/docs/contracts.rst
+++ b/docs/contracts.rst
@@ -163,6 +163,13 @@ and the default is `internal`.
visible for the contract they are defined in and not in
derived contracts.
+.. note::
+ Everything that is inside a contract is visible to
+ all external observers. Making something `private`
+ only prevents other contract from accessing and modifying
+ the information, but it will still be visible to the
+ whole world outside of the blockchain.
+
The visibility specifier is given after the type for
state variables and between parameter list and
return parameter list for functions.