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/ExamplesPart.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/ExamplesPart.tex')
-rw-r--r-- | doc/reference/ExamplesPart.tex | 2 |
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 {} |