From a081829bc10c698b4c47fc767848257bb60e8723 Mon Sep 17 00:00:00 2001 From: s4nk Date: Wed, 14 Jan 2015 00:23:33 +0100 Subject: [PATCH] Corrected map combinator example --- web/collections.textile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/collections.textile b/web/collections.textile index 21c4c9fc..4562750d 100644 --- a/web/collections.textile +++ b/web/collections.textile @@ -185,14 +185,14 @@ scala> numbers.map((i: Int) => i * 2) res0: List[Int] = List(2, 4, 6, 8) -or pass in a partially evaluated function +or pass in a function
 
 scala> def timesTwo(i: Int): Int = i * 2
 timesTwo: (i: Int)Int
 
-scala> numbers.map(timesTwo _)
+scala> numbers.map(timesTwo)
 res0: List[Int] = List(2, 4, 6, 8)