mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix examples.
This commit is contained in:
parent
a762694f1d
commit
c38797fbff
@ -302,8 +302,8 @@ Creating arrays with variable length in memory can be done using the `new` keywo
|
|||||||
|
|
||||||
contract C {
|
contract C {
|
||||||
function f(uint len) {
|
function f(uint len) {
|
||||||
uint[] a = new uint[](7);
|
uint[] memory a = new uint[](7);
|
||||||
bytes b = new bytes(len);
|
bytes memory b = new bytes(len);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user