diff options
Diffstat (limited to 'aied2018/patterns.tex')
-rw-r--r-- | aied2018/patterns.tex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/aied2018/patterns.tex b/aied2018/patterns.tex index d50a62e..28a5ed8 100644 --- a/aied2018/patterns.tex +++ b/aied2018/patterns.tex @@ -127,7 +127,7 @@ The first TRE encodes a single path in the AST and describes the program’s blo print(d) \end{Verbatim} -The second pattern describes a common mistake for this problem: \code{range(1,n)} will only generate values up to \code{n-1}, so \code{n} will not be printed as its own divisor. A correct pattern would include the binary operator \code{+} on the path to \code{n}, indicating a call to \code{range(1,n+1)}. +The second pattern shows a common mistake for this problem: \code{range(1,n)} will only generate values up to \code{n-1}, so \code{n} will not be printed as its own divisor. A correct pattern would include the binary operator \code{+} on the path to \code{n}, indicating a call to \code{range(1,n+1)}. \subsection{Constructing patterns} |