Skip to content

Commit c4eacb8

Browse files
committed
wording
1 parent c138625 commit c4eacb8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Core__Dict.resi

+3-3
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ let dict = Dict.fromIterator(someIterator) // Dict.t<int>
8989
external fromIterator: Core__Iterator.t<(string, 'a)> => t<'a> = "Object.fromEntries"
9090

9191
/**
92-
`toArray(dictionary)` turns the dictionary into an array of key/value pairs.
92+
`toArray(dictionary)` returns an array of all the key/value pairs of the dictionary.
9393

9494
## Examples
9595
```rescript
@@ -104,7 +104,7 @@ Console.log(asArray) // Logs `[["someKey", 1], ["someKey2", 2]]` to the console
104104
external toArray: t<'a> => array<(string, 'a)> = "Object.entries"
105105

106106
/**
107-
`keysToArray(dictionary)` turns the dictionary into an array of its keys.
107+
`keysToArray(dictionary)` returns an array of all the keys of the dictionary.
108108

109109
## Examples
110110
```rescript
@@ -119,7 +119,7 @@ Console.log(keys) // Logs `["someKey", "someKey2"]` to the console
119119
external keysToArray: t<'a> => array<string> = "Object.keys"
120120

121121
/**
122-
`valuesToArray(dictionary)` turns the dictionary into an array of its values.
122+
`valuesToArray(dictionary)` returns an array of all the values of the dictionary.
123123

124124
## Examples
125125
```rescript

0 commit comments

Comments
 (0)