diff options
author | mihaylov <mihaylov@epfl.ch> | 2005-08-02 07:37:01 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2005-08-02 07:37:01 +0000 |
commit | dfd98cb40a0184978da59a88a84f5a018a2308cd (patch) | |
tree | 2e5b7028aebbc27c22015cb0112e60ad8a498d8f /doc | |
parent | f833e14198423ee9a90c3004d3169f4628ec30cf (diff) | |
download | scala-dfd98cb40a0184978da59a88a84f5a018a2308cd.tar.gz scala-dfd98cb40a0184978da59a88a84f5a018a2308cd.tar.bz2 scala-dfd98cb40a0184978da59a88a84f5a018a2308cd.zip |
Fixed as noted in bug contributions #79 and #80
Diffstat (limited to 'doc')
-rw-r--r-- | doc/reference/ExamplesPart.tex | 2 | ||||
-rw-r--r-- | doc/reference/ReferencePart.tex | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/reference/ExamplesPart.tex b/doc/reference/ExamplesPart.tex index 66dd72486b..4a2ad670df 100644 --- a/doc/reference/ExamplesPart.tex +++ b/doc/reference/ExamplesPart.tex @@ -4129,7 +4129,7 @@ three functions again, this time implemented using for-comprehensions. \begin{lstlisting} object Demo { def map[a, b](xs: List[a], f: a => b): List[b] = - for (val x <- cs) yield f(x); + for (val x <- xs) yield f(x); def flatMap[a, b](xs: List[a], f: a => List[b]): List[b] = for (val x <- xs; val y <- f(x)) yield y; diff --git a/doc/reference/ReferencePart.tex b/doc/reference/ReferencePart.tex index 0887f72917..fcc2c4820f 100644 --- a/doc/reference/ReferencePart.tex +++ b/doc/reference/ReferencePart.tex @@ -1429,7 +1429,7 @@ function. That is, the argument is evaluated using {\em call-by-name}. \begin{lstlisting} def whileLoop (cond: => Boolean) (stat: => Unit): Unit \end{lstlisting} -indicates that both parameters of \code{while} are evaluated using +indicates that both parameters of \code{whileLoop} are evaluated using call-by-name. The last value parameter of a parameter section may be suffixed by |