@@ -9,7 +9,7 @@ are used as function arguments or in assignments.
9
9
10
10
Unlike :ref: `reference types <reference-types >`, value type declarations do not
11
11
specify a data location since they are small enough to be stored on the stack.
12
- The only exception are :ref: `state variables <structure-state-variables >`.
12
+ The only exception is :ref: `state variables <structure-state-variables >`.
13
13
Those are by default located in storage, but can also be marked as
14
14
:ref: `transient <transient-storage >`, :ref: `constant or immutable <constants >`.
15
15
@@ -204,7 +204,7 @@ must be explicit via ``payable(<address>)``.
204
204
Explicit conversions to and from ``address `` are allowed for ``uint160 ``, integer literals,
205
205
``bytes20 `` and contract types.
206
206
207
- Only expressions of type ``address `` and contract- type can be converted to the type ``address
207
+ Only expressions of type ``address `` and contract type can be converted to the type ``address
208
208
payable `` via the explicit conversion ``payable(...) ``. For contract-type, this conversion is only
209
209
allowed if the contract can receive Ether, i.e., the contract either has a :ref: `receive
210
210
<receive-ether-function>` or a payable fallback function. Note that ``payable(0) `` is valid and is
@@ -215,7 +215,7 @@ an exception to this rule.
215
215
declare its type as ``address payable `` to make this requirement visible. Also,
216
216
try to make this distinction or conversion as early as possible.
217
217
218
- The distinction between ``address `` and ``address payable `` was introduced with version 0.5.0.
218
+ The distinction between ``address `` and ``address payable `` was introduced in version 0.5.0.
219
219
Also starting from that version, contracts are not implicitly convertible to the ``address `` type, but can still be explicitly converted to
220
220
``address `` or to ``address payable ``, if they have a receive or payable fallback function.
221
221
0 commit comments