Merge pull request #11428 from Lisanaaa/patch-1

array type is not callable
This commit is contained in:
Harikrishnan Mulackal 2021-05-25 12:26:45 +02:00 committed by GitHub
commit 4d23c301c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,7 +148,7 @@ If you have a ``public`` state variable of array type, then you can only retriev
single elements of the array via the generated getter function. This mechanism
exists to avoid high gas costs when returning an entire array. You can use
arguments to specify which individual element to return, for example
``data(0)``. If you want to return an entire array in one call, then you need
``myArray(0)``. If you want to return an entire array in one call, then you need
to write a function, for example:
::