Skip to content

Commit 0da703e

Browse files
authored
Merge pull request #181 from dhovart/fix-typo-polyvariant
Fix small error in polymorphic-variant.mdx
2 parents f3262dd + f1ed3e7 commit 0da703e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/docs/manual/latest/polymorphic-variant.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ let other = [#Green]
261261
let all = Belt.Array.concat(colors, other)
262262
```
263263

264-
As you can see in the example above, the type checker doesn't really care about the fact that `color` is not annotated as an `array<rgb>` type.
264+
As you can see in the example above, the type checker doesn't really care about the fact that `other` is not annotated as an `array<rgb>` type.
265265

266266
As soon as it hits the first constraint (`Belt.Array.concat`), it will try to check if the structural types of `colors` and `other` unify into one poly variant type. If there's a mismatch, you will get an error on the `Belt.Array.concat` call.
267267

0 commit comments

Comments
 (0)