From 7d50bd127a071b84cc3d5e6e989b5f57d5988aaf Mon Sep 17 00:00:00 2001 From: mihaylov Date: Fri, 26 Aug 2005 15:17:13 +0000 Subject: Use the new syntax for def parameters --- doc/reference/ScalaByExample.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') 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 } -- cgit v1.2.3