You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: markdown-pages/docs/manual/variant.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -641,7 +641,7 @@ let one: a = One
641
641
let oneAsString = (one :> string)
642
642
```
643
643
644
-
If you were to configure all of your construtors to be represented as `int` or `float`, you could coerce to those too:
644
+
If you were to configure all of your constructors to be represented as `int` or `float`, you could coerce to those too:
645
645
646
646
```rescript
647
647
type asInt = | @as(1) One | @as(2) Two | @as(3) Three
@@ -652,7 +652,7 @@ let toInt = (oneInt :> int)
652
652
653
653
### Advanced: Coercing `string` to Variant
654
654
655
-
In certain situtations it's possible to coerce a `string` to a variant. This is an advanced technique that you're unlikely to need much, but when you do it's really useful.
655
+
In certain situations it's possible to coerce a `string` to a variant. This is an advanced technique that you're unlikely to need much, but when you do it's really useful.
0 commit comments