Update frequently-asked-questions.rst

Correcting inline array documentation
This commit is contained in:
RJ 2016-02-10 10:53:08 -06:00
parent 543cc33681
commit 7b5d96c43b

View File

@ -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]);
}
}