on master help sign in
Merge pull request #329 from byorgey/patch-1
1ce780aEdwin Brady
tutorial/interp.tex+2−2
@@ -97,7 +97,7 @@ data HasType : (i : Fin n) -> Vect Ty n -> Ty -> Type where
97\noindent
97\noindent
98We can treat \remph{stop} as a proof that the most recently defined variable is well-typed,
98We can treat \remph{stop} as a proof that the most recently defined variable is well-typed,
99and \remph{pop n} as a proof that, if the \texttt{n}th most recently defined variable is
99and \remph{pop n} as a proof that, if the \texttt{n}th most recently defined variable is
100−well-typed, so is the \texttt{n+1}th. In practice, this means we use \texttt{pop} to
100+well-typed, so is the \texttt{n+1}th. In practice, this means we use \texttt{stop} to
101refer to the most recently defined variable, \texttt{pop stop} to refer to the next, and so on,
101refer to the most recently defined variable, \texttt{pop stop} to refer to the next, and so on,
102via the \texttt{Var} constructor:
102via the \texttt{Var} constructor:
103
103
@@ -397,7 +397,7 @@ unitTestFac = oh
397\useverb{unitTestFac}
397\useverb{unitTestFac}
398
398
399\noindent
399\noindent
400−For the program the compile, the test case must pass. If we change \texttt{24} to \texttt{25},
400+For the program to compile, the test case must pass. If we change \texttt{24} to \texttt{25},
401say, we will get an error message like the following:
401say, we will get an error message like the following:
402
402
403\begin{SaveVerbatim}{unitTestErr}
403\begin{SaveVerbatim}{unitTestErr}