Update types.rst

line 349 "returns" not return
This commit is contained in:
Ola 2016-11-22 18:21:13 -05:00 committed by GitHub
parent 1a205ebf78
commit 622952d4b9

View File

@ -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) {