mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update frequently-asked-questions.rst
Correcting inline array documentation
This commit is contained in:
parent
543cc33681
commit
7b5d96c43b
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user