Skip to content

Commit 492af93

Browse files
s5untyodino
authored andcommitted
docs) wrong function name, fixed
1 parent 76b450e commit 492af93

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/src/docs/types/array.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,8 @@ Returns true when at least one of the elements in the array
371371
returns `true` when applied to the function `f`:
372372
373373
```py
374-
[0, 1, 2].map(f(x){x == 1}) # true
375-
[0, 1, 2].map(f(x){x == 4}) # false
374+
[0, 1, 2].some(f(x){x == 1}) # true
375+
[0, 1, 2].some(f(x){x == 4}) # false
376376
```
377377
378378
### sort()
@@ -469,4 +469,4 @@ Returns the array with duplicate values removed. The values need not be sorted:
469469
```py
470470
[1, 1, 1, 2].unique() # [1, 2]
471471
[2, 1, 2, 3].unique() # [2, 1, 3]
472-
```
472+
```

0 commit comments

Comments
 (0)