1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-25 15:51:15 +02:00

Fixes multidimensional array (#4239)

This commit is contained in:
Haden Wasserbaech
2021-10-10 10:32:14 -07:00
committed by GitHub
parent 7e5abe2aaf
commit 1fb1ad6b5f
3 changed files with 3 additions and 3 deletions

View File

@@ -295,7 +295,7 @@ names.length; // get length
names.length = 1; // lengths can be set (for dynamic arrays in storage only)
// multidimensional array
uint x[][5]; // arr with 5 dynamic array elements (opp order of most languages)
uint[][5] x; // arr with 5 dynamic array elements (opp order of most languages)
// Dictionaries (any type to any other type)
mapping (string => uint) public balances;