Skip to content

Commit bd58ddb

Browse files
committed
docs: fix wrong function names in List doc comments
- fromInitializer was documented as makeBy - reduceReverse2 was documented as reduce2 in its own doc comment
1 parent 2410129 commit bd58ddb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Core__List.resi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ List.make(~length=3, 1) // list{1, 1, 1}
179179
let make: (~length: int, 'a) => t<'a>
180180

181181
/**
182-
`makeBy(length, f)` return a list of length `length` with element initialized
182+
`fromInitializer(~length, f)` return a list of length `length` with element initialized
183183
with `f`. Returns an empty list if `length` is negative.
184184
185185
## Examples
@@ -534,7 +534,7 @@ let reduce2: (t<'b>, t<'c>, 'a, ('a, 'b, 'c) => 'a) => 'a
534534
`reduceReverse2(list1, list2, initialValue, f)` applies `f` to each element of
535535
`list1` and `list2`from end to beginning. Stops with the shorter list. Function
536536
`f` has three parameters: an accumulator which starts with a value of
537-
`initialValue`, an item from `l1`, and an item from `l2`. `reduce2` returns the
537+
`initialValue`, an item from `l1`, and an item from `l2`. `reduceReverse2` returns the
538538
final value of the accumulator.
539539
540540
## Examples

0 commit comments

Comments
 (0)