mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Minor documentation fixes
This commit is contained in:
parent
4f191d1f6f
commit
76c856397a
@ -7,7 +7,7 @@ Expressions and Control Structures
|
|||||||
Control Structures
|
Control Structures
|
||||||
===================
|
===================
|
||||||
|
|
||||||
Most of the control structures from C/JavaScript are available in Solidity
|
Most of the control structures from C or JavaScript are available in Solidity
|
||||||
except for ``switch`` and ``goto``. So
|
except for ``switch`` and ``goto``. So
|
||||||
there is: ``if``, ``else``, ``while``, ``for``, ``break``, ``continue``, ``return``, ``? :``, with
|
there is: ``if``, ``else``, ``while``, ``for``, ``break``, ``continue``, ``return``, ``? :``, with
|
||||||
the usual semantics known from C or JavaScript.
|
the usual semantics known from C or JavaScript.
|
||||||
@ -785,7 +785,7 @@ Conventions in Solidity
|
|||||||
|
|
||||||
In contrast to EVM assembly, Solidity knows types which are narrower than 256 bits,
|
In contrast to EVM assembly, Solidity knows types which are narrower than 256 bits,
|
||||||
e.g. ``uint24``. In order to make them more efficient, most arithmetic operations just
|
e.g. ``uint24``. In order to make them more efficient, most arithmetic operations just
|
||||||
treat them as 256 bit numbers and the higher-order bits are only cleaned at the
|
treat them as 256-bit numbers and the higher-order bits are only cleaned at the
|
||||||
point where it is necessary, i.e. just shortly before they are written to memory
|
point where it is necessary, i.e. just shortly before they are written to memory
|
||||||
or before comparisons are performed. This means that if you access such a variable
|
or before comparisons are performed. This means that if you access such a variable
|
||||||
from within inline assembly, you might have to manually clean the higher order bits
|
from within inline assembly, you might have to manually clean the higher order bits
|
||||||
|
@ -9,7 +9,7 @@ Installing Solidity
|
|||||||
Versioning
|
Versioning
|
||||||
==========
|
==========
|
||||||
|
|
||||||
Solidity versions follow `semantic versioning <https://semver.org>` and in addition to
|
Solidity versions follow `semantic versioning <https://semver.org>`_ and in addition to
|
||||||
releases, **nightly development builds** are also made available. The nightly builds
|
releases, **nightly development builds** are also made available. The nightly builds
|
||||||
are not guaranteed to be working and despite best efforts they might contain undocumented
|
are not guaranteed to be working and despite best efforts they might contain undocumented
|
||||||
and/or broken changes. We recommend to use the latest release. Package installers below
|
and/or broken changes. We recommend to use the latest release. Package installers below
|
||||||
|
@ -61,6 +61,7 @@ Layout in Memory
|
|||||||
****************
|
****************
|
||||||
|
|
||||||
Solidity reserves three 256-bit slots:
|
Solidity reserves three 256-bit slots:
|
||||||
|
|
||||||
- 0 - 64: scratch space for hashing methods
|
- 0 - 64: scratch space for hashing methods
|
||||||
- 64 - 96: currently allocated memory size (aka. free memory pointer)
|
- 64 - 96: currently allocated memory size (aka. free memory pointer)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user