Skip to content

Commit

Permalink
Add missing comma (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagehane authored May 17, 2022
1 parent 2de2015 commit 5706d4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/content/1.2/types-and-functions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ \section{Who Needs Types?}
remaining programs will have a better chance of being useful. Type
checking provides yet another barrier against nonsensical programs.
Moreover, whereas in a dynamically typed language, type mismatches would
be discovered at runtime, in strongly typed statically checked languages
be discovered at runtime, in strongly typed statically checked languages,
type mismatches are discovered at compile time, eliminating lots of
incorrect programs before they have a chance to run.

Expand Down Expand Up @@ -408,7 +408,7 @@ \section{Examples of Types}
to define a Boolean type in C++ as an enumeration:

\begin{snip}{cpp}
enum bool {
enum bool {
true,
false
};
Expand Down Expand Up @@ -468,7 +468,7 @@ \section{Challenges}
\end{minted}
\item
\begin{minted}{cpp}
bool f() {
bool f() {
std::cout << "Hello!" << std::endl;
return true;
}
Expand All @@ -490,4 +490,4 @@ \section{Challenges}
\code{Void}, \code{()} (unit), and \code{Bool}; with arrows
corresponding to all possible functions between these types. Label the
arrows with the names of the functions.
\end{enumerate}
\end{enumerate}

0 comments on commit 5706d4c

Please sign in to comment.