Fixed README punctuation for lume.reduce

This commit is contained in:
rxi 2018-03-10 14:57:56 +00:00
parent 64aae8d473
commit 2b10ce1f98

View File

@ -175,7 +175,7 @@ Applies `fn` on two arguments cumulative to the items of the array `t`, from
left to right, so as to reduce the array to a single value. If a `first` value left to right, so as to reduce the array to a single value. If a `first` value
is specified the accumulator is initialised to this, otherwise the first value is specified the accumulator is initialised to this, otherwise the first value
in the array is used. If the array is empty and no `first` value is specified in the array is used. If the array is empty and no `first` value is specified
an error is raised, an error is raised.
```lua ```lua
lume.reduce({1, 2, 3}, function(a, b) return a + b end) -- Returns 6 lume.reduce({1, 2, 3}, function(a, b) return a + b end) -- Returns 6
``` ```