Update line about calldata use for external funcs

This commit is contained in:
t11s 2021-07-17 12:45:03 -07:00 committed by GitHub
parent 616933cd5f
commit e7324f660d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,7 @@ annotation, the "data location", about where it is stored. There are three data
``memory``, ``storage`` and ``calldata``. Calldata is a non-modifiable, ``memory``, ``storage`` and ``calldata``. Calldata is a non-modifiable,
non-persistent area where function arguments are stored, and behaves mostly like memory. non-persistent area where function arguments are stored, and behaves mostly like memory.
Calldata is usually preferred over memory for external functions but is not required after Solidity `0.6.9`.
.. note:: .. note::
Prior to version 0.5.0 the data location could be omitted, and would default to different locations Prior to version 0.5.0 the data location could be omitted, and would default to different locations