diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/reference/ScalaByExample.tex | 2 |
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 } |