mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Modified common-patterns.rst
Now it uses proper inline code syntax
This commit is contained in:
parent
eb57a0c397
commit
d57efc06c4
@ -17,7 +17,7 @@ to read the data, so will everyone else.
|
|||||||
|
|
||||||
You can restrict read access to your contract's state
|
You can restrict read access to your contract's state
|
||||||
by **other contracts**. That is actually the default
|
by **other contracts**. That is actually the default
|
||||||
unless you declare make your state variables `public`.
|
unless you declare make your state variables :code:`public`.
|
||||||
|
|
||||||
Furthermore, you can restrict who can make modifications
|
Furthermore, you can restrict who can make modifications
|
||||||
to your contract's state or call your contract's
|
to your contract's state or call your contract's
|
||||||
@ -140,11 +140,11 @@ Example
|
|||||||
=======
|
=======
|
||||||
|
|
||||||
In the following example,
|
In the following example,
|
||||||
the modifier `atStage` ensures that the function can
|
the modifier :code:`atStage` ensures that the function can
|
||||||
only be called at a certain stage.
|
only be called at a certain stage.
|
||||||
|
|
||||||
Automatic timed transitions
|
Automatic timed transitions
|
||||||
are handled by the modifier `timeTransitions`, which
|
are handled by the modifier :code:`timeTransitions`, which
|
||||||
should be used for all functions.
|
should be used for all functions.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
@ -154,7 +154,7 @@ should be used for all functions.
|
|||||||
it after the latter, so that the new stage is
|
it after the latter, so that the new stage is
|
||||||
taken into account.
|
taken into account.
|
||||||
|
|
||||||
Finally, the modifier `transitionNext` can be used
|
Finally, the modifier :code:`transitionNext` can be used
|
||||||
to automatically go to the next stage when the
|
to automatically go to the next stage when the
|
||||||
function finishes.
|
function finishes.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user