mirror of
https://github.com/AmberGraceRblx/luau-promise.git
synced 2025-04-24 15:50:01 +00:00
Fix typo
This commit is contained in:
parent
ce6c12f177
commit
73e91d89dd
1 changed files with 1 additions and 1 deletions
|
@ -366,7 +366,7 @@ docs:
|
||||||
The folding will stop at the first rejection encountered.
|
The folding will stop at the first rejection encountered.
|
||||||
```lua
|
```lua
|
||||||
local basket = {"blueberry", "melon", "pear", "melon"}
|
local basket = {"blueberry", "melon", "pear", "melon"}
|
||||||
Promise.fold(basket, function(accumulatedCost, fruit)
|
Promise.fold(basket, function(cost, fruit)
|
||||||
if fruit == "blueberry" then
|
if fruit == "blueberry" then
|
||||||
return cost -- blueberries are free!
|
return cost -- blueberries are free!
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue