mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #3182 from janat08/patch-2
Update introduction-to-smart-contracts.rst
This commit is contained in:
commit
a938e39a9d
@ -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; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user