Skip to content

Commit

Permalink
docs: barArray should be a static array (#1288)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xkowloon authored Aug 16, 2023
1 parent 5e744f2 commit 162ca7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/store/reading-and-writing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ tables: {
```solidity
// Setting a record
uint256[] memory fooArray = new uint256[](1);
uint256[] memory barArray = new uint256[](2);
uint256[2] memory barArray;
barArray[0] = 69;
barArray[1] = 85;
fooArray[0] = 42;
Expand Down

0 comments on commit 162ca7d

Please sign in to comment.