Skip to content

Commit f9d5bdb

Browse files
committed
text: FIX Exc declaration in 'Exn are ordinary values'
1 parent da565bf commit f9d5bdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

presentation/catching.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ \subsection{Exceptions are values}
1111
\begin{itemize}
1212
\item Exceptions are ordinary values\footnotemark
1313
\item No longer special: an extensible variant type (\text{``}not fully defined in one place\text{''})
14-
\item \mintinline{ocaml}{exception Exc} is equivalent to \mintinline{ocaml}{type exn += Exc of int}
14+
\item \mintinline{ocaml}{exception Exc of int} is equivalent to \mintinline{ocaml}{type exn += Exc of int}
1515
\item Like variants, if the exception has no parameter, memory allocation isn't needed
1616
\item Exceptions with parameter (\mintinline{ocaml}{exception <name> of <type>}) need heap allocation
1717
\end{itemize}

0 commit comments

Comments
 (0)