Skip to content

Commit af881dd

Browse files
committed
Small fixes
1 parent 193d240 commit af881dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_posts/en/type-systems-part-2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ data Tuple a b = Tuple a b
419419
pets = Tuple myPet myPet2
420420
```
421421

422-
and a type class to be able to logShow them
422+
and a type class to be able to `logShow` them
423423

424424
```TypeScript
425425
instance showTuple :: (Show a, Show b) => Show (Tuple a b) where
@@ -428,7 +428,7 @@ instance showTuple :: (Show a, Show b) => Show (Tuple a b) where
428428

429429
and that would work. But if you'd like to do `pets = Tuple myPet myPet2 myPet2`, the compiler will notify you of an error instead of inferring 3 items tuple type.
430430

431-
In this example of PureScript code, you can check different things (types inferred for variables, uncomment `showsAnimal)` and see the type checker reporting an error because you havent covered all cases of the pattern).
431+
In this example of PureScript code, you can check different things (types inferred for variables, uncomment `showsAnimal`) and see the type checker reporting an error because you havent covered all cases of the pattern).
432432

433433
If you fix `showsAnimal` to make it cover the whole pattern
434434

0 commit comments

Comments
 (0)