diff options
author | michelou <michelou@epfl.ch> | 2005-07-27 12:26:21 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2005-07-27 12:26:21 +0000 |
commit | ea4a4fd3b2dbd95551d7925ec7d118ccd56420cb (patch) | |
tree | 699dd393c9b2bfa2314ea6cb4ac7ff7b93984b69 /doc/reference/ReferencePart.tex | |
parent | 84f48521b8fa5a7ffd14d97c6f1b88708caabe16 (diff) | |
download | scala-ea4a4fd3b2dbd95551d7925ec7d118ccd56420cb.tar.gz scala-ea4a4fd3b2dbd95551d7925ec7d118ccd56420cb.tar.bz2 scala-ea4a4fd3b2dbd95551d7925ec7d118ccd56420cb.zip |
- updated code for deprecated def-parameters.
Diffstat (limited to 'doc/reference/ReferencePart.tex')
-rw-r--r-- | doc/reference/ReferencePart.tex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/reference/ReferencePart.tex b/doc/reference/ReferencePart.tex index ec62089df1..0887f72917 100644 --- a/doc/reference/ReferencePart.tex +++ b/doc/reference/ReferencePart.tex @@ -3180,8 +3180,8 @@ evaluated as if it was an application of ~\lstinline@whileLoop ($e_1$) ($e_2$)@~ the hypothetical function \code{whileLoop} is defined as follows. \begin{lstlisting} - def whileLoop(def c: boolean)(def s: unit): unit = - if (c) { s ; while(c)(s) } else {} + def whileLoop(cond: => Boolean)(body: => Unit): Unit = + if (cond) { body ; while(cond)(body) } else {} \end{lstlisting} \example The loop |