@@ -330,7 +330,7 @@ main = do putStr "Enter a number: "
330330
331331\noindent
332332Here, \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
334334an integer, giving 0 if the input is invalid. An example run of this program
335335at the \Idris{} interactive environment is shown in Figure \ref{factrun}.
336336
@@ -367,7 +367,7 @@ class Cast from to where
367367
368368\noindent
369369It 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}
371371parameters at the point where the cast is applied.
372372There are casts defined between all of the primitive types, as far as
373373they make sense.