added
authorChristian Urban <christian dot urban at kcl dot ac dot uk>
Fri, 27 Sep 2013 11:58:22 +0100
changeset 113 db6862f6bf6c
parent 112 95ee5cc5c05d
child 114 735f7bbfae9b
added
handouts/ho01.pdf
handouts/ho01.tex
Binary file handouts/ho01.pdf has changed
--- a/handouts/ho01.tex	Fri Sep 27 11:49:44 2013 +0100
+++ b/handouts/ho01.tex	Fri Sep 27 11:58:22 2013 +0100
@@ -298,7 +298,7 @@
 {\lstset{language=Scala}\texttt{\lstinputlisting{../progs/crawler2.scala}}}
 \caption{A version of the web-crawler which only follows links in ``my'' domain---since these are the
 ones I am interested in to fix. It uses the regular expression {\tt my\_urls} in Line~16.
-The main change is in Line~26 where we test whether URL is in our domain or not.}
+The main change is in Line~26 where there is a test whether URL is in ``my'' domain or not.}
 
 \end{figure}
 
@@ -306,8 +306,7 @@
 {\lstset{language=Scala}\texttt{\lstinputlisting{../progs/crawler3.scala}}}
 \caption{A small email harvester---whenever we download a web-page, we also check whether
 it contains any email addresses. For this we use the regular expression {\tt email\_pattern} in
-Line~17.  The main change is in Lines 33 and 34 where we print all email addresses
-we can find in a page.}
+Line~17.  The main change is in Lines 33 and 34 where all email addresses that can be found in a page are printed.}
 \end{figure}
 
 \end{document}