diff --git a/intros/TypeScript for the Haskell or ML Programmer.md b/intros/TypeScript for the Haskell or ML Programmer.md index ecd6b37..3b924b6 100644 --- a/intros/TypeScript for the Haskell or ML Programmer.md +++ b/intros/TypeScript for the Haskell or ML Programmer.md @@ -388,7 +388,7 @@ function area(s: Shape) { } ``` -Note that the return type is `area` is inferred to be `number` because +Note that the return type of `area` is inferred to be `number` because TypeScript knows the function is total. If some variant is not covered, the return type of `area` will be `number | undefined` instead.