Type: strings

This commit is contained in:
Feiyang Tan 2021-03-31 14:14:13 +08:00 committed by chriseth
parent 6d6112a81b
commit e36337d74b

View File

@ -136,8 +136,8 @@ a reference to it.
.. _bytes:
``bytes`` and ``strings`` as Arrays
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
``bytes`` and ``string`` as Arrays
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Variables of type ``bytes`` and ``string`` are special arrays. A ``bytes`` is similar to ``byte[]``,
but it is packed tightly in calldata and memory. ``string`` is equal to ``bytes`` but does not allow