Skip to content

Commit 03010fa

Browse files
ktgw0316drupol
authored andcommitted
fix: case is clause, not statement
1 parent 12ddb3a commit 03010fa

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/content/1.9/function-types.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ \subsection{Exponentials of Sums}
466466
that a function from a sum of two types is equivalent to a pair of
467467
functions from individual types. This is just the case analysis that we
468468
use when defining functions on sums. Instead of writing one function
469-
definition with a \code{case} statement, we usually split it into two
469+
definition with a \code{case} clause, we usually split it into two
470470
(or more) functions dealing with each type constructor separately. For
471471
instance, take a function from the sum type
472472
\code{(Either Int Double)}:

src/content/2.2/limits-and-colimits.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ \section{Continuity}
627627

628628
\src{snippet18}
629629
Indeed, any function of \code{Either b c} is implemented as a case
630-
statement with the two cases being serviced by a pair of functions.
630+
clause with the two cases being serviced by a pair of functions.
631631

632632
Similarly, when we fix the first argument of the hom-set, we get the
633633
familiar reader functor. Its continuity means that, for instance, any

src/content/3.10/ends-and-coends.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ \section{Coends}
368368
function must be prepared to handle any one of the types that may be
369369
encoded in the existential type. It's the same principle that tells us
370370
that a function that accepts a sum type must be implemented as a case
371-
statement, with a tuple of handlers, one for every type present in the
371+
clause, with a tuple of handlers, one for every type present in the
372372
sum. Here, the sum type is replaced by a coend, and a family of handlers
373373
becomes an end, or a polymorphic function.
374374

0 commit comments

Comments
 (0)