Skip to content

Commit 7911666

Browse files
authored
Merge pull request #13463 from emmaodia/develop
Grammar fix
2 parents 62e4ce3 + 0d98436 commit 7911666

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/types/value-types.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ Operators:
221221

222222
.. warning::
223223
If you convert a type that uses a larger byte size to an ``address``, for example ``bytes32``, then the ``address`` is truncated.
224-
To reduce conversion ambiguity version 0.4.24 and higher of the compiler force you make the truncation explicit in the conversion.
224+
To reduce conversion ambiguity, starting with version 0.4.24, the compiler will force you to make the truncation explicit in the conversion.
225225
Take for example the 32-byte value ``0x111122223333444455556666777788889999AAAABBBBCCCCDDDDEEEEFFFFCCCC``.
226226

227227
You can use ``address(uint160(bytes20(b)))``, which results in ``0x111122223333444455556666777788889999aAaa``,
@@ -336,7 +336,7 @@ on ``call``.
336336
* ``code`` and ``codehash``
337337

338338
You can query the deployed code for any smart contract. Use ``.code`` to get the EVM bytecode as a
339-
``bytes memory``, which might be empty. Use ``.codehash`` get the Keccak-256 hash of that code
339+
``bytes memory``, which might be empty. Use ``.codehash`` to get the Keccak-256 hash of that code
340340
(as a ``bytes32``). Note that ``addr.codehash`` is cheaper than using ``keccak256(addr.code)``.
341341

342342
.. note::

0 commit comments

Comments
 (0)