diff options
author | RJ <catalanor0220@gmail.com> | 2016-02-11 00:53:08 +0800 |
---|---|---|
committer | RJ <catalanor0220@gmail.com> | 2016-02-11 00:53:08 +0800 |
commit | 7b5d96c43bc4019d8f64951be64a1d702ee63e5d (patch) | |
tree | 7061b54f674230bb61c113900dc72f6a815d8c73 /docs | |
parent | 543cc33681dbee987c936e12527eea983df17270 (diff) | |
download | dexon-solidity-7b5d96c43bc4019d8f64951be64a1d702ee63e5d.tar.gz dexon-solidity-7b5d96c43bc4019d8f64951be64a1d702ee63e5d.tar.zst dexon-solidity-7b5d96c43bc4019d8f64951be64a1d702ee63e5d.zip |
Update frequently-asked-questions.rst
Correcting inline array documentation
Diffstat (limited to 'docs')
-rw-r--r-- | docs/frequently-asked-questions.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/frequently-asked-questions.rst b/docs/frequently-asked-questions.rst index 33ed86d5..db37a272 100644 --- a/docs/frequently-asked-questions.rst +++ b/docs/frequently-asked-questions.rst @@ -195,10 +195,11 @@ Yes. However it should be noted that this currently only works with statically s array in the return statement. Pretty cool, huh? Example:: + contract C { - function f() returns (uint) { + function f() returns (uint8[5]) { string[4] memory AdaArr = ["This", "is", "an", "array"]; - return ([1, 2, 3, 4][2]); + return ([1, 2, 3, 4, 5]); } } |