mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update types.rst
line 349 "returns" not return
This commit is contained in:
parent
1a205ebf78
commit
622952d4b9
@ -346,7 +346,7 @@ Example that shows how to use internal function types::
|
||||
|
||||
contract Pyramid {
|
||||
using ArrayUtils for *;
|
||||
function pyramid(uint l) return (uint) {
|
||||
function pyramid(uint l) returns (uint) {
|
||||
return ArrayUtils.range(l).map(square).reduce(sum);
|
||||
}
|
||||
function square(uint x) internal returns (uint) {
|
||||
|
Loading…
Reference in New Issue
Block a user