cws/cw02.tex
changeset 59 8e866d0af03a
parent 50 9891c9fac37e
child 60 f099bcf9cff1
--- a/cws/cw02.tex	Thu Nov 17 11:24:45 2016 +0000
+++ b/cws/cw02.tex	Thu Nov 17 15:12:47 2016 +0000
@@ -28,7 +28,8 @@
 \textbf{Important:} Do not use any mutable data structures in your
 submissions! They are not needed. This excluded the use of
 \texttt{ListBuffer}s, for example. Do not use \texttt{return} in your
-code! It has a different meaning in Scala, than in Java.  Feel free to
+code! It has a different meaning in Scala, than in Java.
+Do not use \texttt{var}! This declares a mutable variable. Feel free to
 copy any code you need from files \texttt{knight1.scala},
 \texttt{knight2.scala} and \texttt{knight3.scala}. Make sure the
 functions you submit are defined on the ``top-level'' of Scala, not