Explorar o código

Update list.md

Marco Bambini %!s(int64=5) %!d(string=hai) anos
pai
achega
ba6c168274
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      docs/list.md

+ 1 - 1
docs/list.md

@@ -82,7 +82,7 @@ The List class implements the filter method as a convenient way to create a new
 ```swift
   var numbers = [1,2,3,4,5,6,7,8,9,10]
 
-  var even = numbers.map(func(num) {
+  var even = numbers.filter(func(num) {
     return !(num % 2)
   })
   // even is now equal to [2,4,6,8,10]