summaryrefslogtreecommitdiff
path: root/doc/reference/ExamplesPart.tex
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2005-07-27 12:26:21 +0000
committermichelou <michelou@epfl.ch>2005-07-27 12:26:21 +0000
commitea4a4fd3b2dbd95551d7925ec7d118ccd56420cb (patch)
tree699dd393c9b2bfa2314ea6cb4ac7ff7b93984b69 /doc/reference/ExamplesPart.tex
parent84f48521b8fa5a7ffd14d97c6f1b88708caabe16 (diff)
downloadscala-ea4a4fd3b2dbd95551d7925ec7d118ccd56420cb.tar.gz
scala-ea4a4fd3b2dbd95551d7925ec7d118ccd56420cb.tar.bz2
scala-ea4a4fd3b2dbd95551d7925ec7d118ccd56420cb.zip
- updated code for deprecated def-parameters.
Diffstat (limited to 'doc/reference/ExamplesPart.tex')
-rw-r--r--doc/reference/ExamplesPart.tex2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/reference/ExamplesPart.tex b/doc/reference/ExamplesPart.tex
index c23bf4a9b5..66dd72486b 100644
--- a/doc/reference/ExamplesPart.tex
+++ b/doc/reference/ExamplesPart.tex
@@ -4482,7 +4482,7 @@ command need to be passed by-name, so that they are evaluated
repeatedly for each loop iteration. This leads to the following
definition of \code{whileLoop}.
\begin{lstlisting}
-def whileLoop(def condition: boolean)(def command: unit): unit =
+def whileLoop(condition: => boolean)(command: => unit): unit =
if (condition) {
command; whileLoop(condition)(command)
} else {}