Skip to content

Commit 41d480b

Browse files
authored
Update variant.mdx
Fixes a couple of typos
1 parent 1ceba17 commit 41d480b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

markdown-pages/docs/manual/variant.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ let one: a = One
641641
let oneAsString = (one :> string)
642642
```
643643

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:
645645

646646
```rescript
647647
type asInt = | @as(1) One | @as(2) Two | @as(3) Three
@@ -652,7 +652,7 @@ let toInt = (oneInt :> int)
652652

653653
### Advanced: Coercing `string` to Variant
654654

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.
656656

657657
You can coerce a `string` to a variant when:
658658

0 commit comments

Comments
 (0)