summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2005-08-26 15:17:13 +0000
committermihaylov <mihaylov@epfl.ch>2005-08-26 15:17:13 +0000
commit7d50bd127a071b84cc3d5e6e989b5f57d5988aaf (patch)
tree4150782d52b5f6a541eed6b9b91dad0c0a93b82b /doc
parentbc6f997f0a06bf2c8b2e05d34623474a7f91a986 (diff)
downloadscala-7d50bd127a071b84cc3d5e6e989b5f57d5988aaf.tar.gz
scala-7d50bd127a071b84cc3d5e6e989b5f57d5988aaf.tar.bz2
scala-7d50bd127a071b84cc3d5e6e989b5f57d5988aaf.zip
Use the new syntax for def parameters
Diffstat (limited to 'doc')
-rw-r--r--doc/reference/ScalaByExample.tex2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/reference/ScalaByExample.tex b/doc/reference/ScalaByExample.tex
index 943c017ca3..93fe411cb6 100644
--- a/doc/reference/ScalaByExample.tex
+++ b/doc/reference/ScalaByExample.tex
@@ -339,7 +339,7 @@ As a program using the \code{MapStruct} abstraction, consider a function
which creates a map from strings to integers and then applies it to a
key string:
\begin{lstlisting}
-def mapTest(def mapImpl: MapStruct[String, int]): int = {
+def mapTest(mapImpl: => MapStruct[String, int]): int = {
val map: mapImpl.Map = mapImpl.empty.extend("ab", 1).extend("bx", 3)
val x = map("ab") // returns 1
}