aboutsummaryrefslogtreecommitdiffstats
path: root/docs/types.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/types.rst')
-rw-r--r--docs/types.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/types.rst b/docs/types.rst
index 6702ce08..187f62c1 100644
--- a/docs/types.rst
+++ b/docs/types.rst
@@ -306,6 +306,8 @@ the `.length` member.
function f(uint len) {
uint[] memory a = new uint[](7);
bytes memory b = new bytes(len);
+ // Here we have a.length == 7 and b.length == len
+ a[6] = 8;
}
}