diff options
-rw-r--r-- | docs/types.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/types.rst b/docs/types.rst index a669c2d8..04101c10 100644 --- a/docs/types.rst +++ b/docs/types.rst @@ -302,8 +302,8 @@ Creating arrays with variable length in memory can be done using the `new` keywo contract C { function f(uint len) { - uint[] a = new uint[](7); - bytes b = new bytes(len); + uint[] memory a = new uint[](7); + bytes memory b = new bytes(len); } } |