summaryrefslogtreecommitdiff
path: root/doc/reference/ExamplesPart.tex
diff options
context:
space:
mode:
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 {}