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:
committed by
GitHub
parent
7e5abe2aaf
commit
1fb1ad6b5f
@@ -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;
|
||||
|
Reference in New Issue
Block a user