Skip to content

Commit e83f8c8

Browse files
Only allow to join actual strings with Array.joinWith
1 parent 106a882 commit e83f8c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Core__Array.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ let indexOfOpt = (arr, item) =>
123123
}
124124
@send external indexOfFrom: (array<'a>, 'a, int) => int = "indexOf"
125125

126-
@send external joinWith: (array<'a>, string) => string = "join"
126+
@send external joinWith: (array<string>, string) => string = "join"
127127

128128
@send external lastIndexOf: (array<'a>, 'a) => int = "lastIndexOf"
129129
let lastIndexOfOpt = (arr, item) =>

0 commit comments

Comments
 (0)