mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #299 from chriseth/documentPrivate
Note about private note being invisible.
This commit is contained in:
commit
98684cca90
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user