@@ -330,7 +330,7 @@ main = do putStr "Enter a number: "
332Here, \texttt{cast} is an overloaded function which converts a value from one
332Here, \texttt{cast} is an overloaded function which converts a value from one
333−type to another if possible. Here, it conversts a string to
333+type to another if possible. Here, it converts a string to
334an integer, giving 0 if the input is invalid. An example run of this program
334an integer, giving 0 if the input is invalid. An example run of this program
335at the \Idris{} interactive environment is shown in Figure \ref{factrun}.
335at the \Idris{} interactive environment is shown in Figure \ref{factrun}.
@@ -367,7 +367,7 @@ class Cast from to where
369It is a \emph{multi-parameter} type class, defining the source type and object
369It is a \emph{multi-parameter} type class, defining the source type and object
370−type of the cast. It must be possible for the type checker \remph{both}
370+type of the cast. It must be possible for the type checker to infer \remph{both}
371parameters at the point where the cast is applied.
371parameters at the point where the cast is applied.
372There are casts defined between all of the primitive types, as far as
372There are casts defined between all of the primitive types, as far as
373they make sense.
373they make sense.