Skip to content

Commit

Permalink
Update reference-types.rst (#14949)
Browse files Browse the repository at this point in the history
It isn't "the only possibility for public contract function arguments" since version 0.6.9, as mentioned in the second "Note" of https://docs.soliditylang.org/en/v0.8.24/types.html#data-location
  • Loading branch information
jpenna authored Apr 3, 2024
1 parent c75e63a commit ad5eab8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/types/reference-types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,7 @@ Array Members
// Data location for all state variables is storage.
bool[2][] pairsOfFlags;
// newPairs is stored in memory - the only possibility
// for public contract function arguments
// newPairs is stored in memory
function setAllFlagPairs(bool[2][] memory newPairs) public {
// assignment to a storage array performs a copy of ``newPairs`` and
// replaces the complete array ``pairsOfFlags``.
Expand Down

0 comments on commit ad5eab8

Please sign in to comment.