Skip to content

Commit e19d1d6

Browse files
committed
Merge pull request #401 from mockdeep/patch-1
typo fix in readme
2 parents 3622d12 + 40a81d1 commit e19d1d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1705,15 +1705,15 @@ condition](#safe-assignment-in-condition).
17051705
end
17061706
```
17071707

1708-
* <a name="map-fine-select-reduce-size"></a>
1708+
* <a name="map-find-select-reduce-size"></a>
17091709
Prefer `map` over `collect`, `find` over `detect`, `select` over `find_all`,
17101710
`reduce` over `inject` and `size` over `length`. This is not a hard
17111711
requirement; if the use of the alias enhances readability, it's ok to use it.
17121712
The rhyming methods are inherited from Smalltalk and are not common in other
17131713
programming languages. The reason the use of `select` is encouraged over
17141714
`find_all` is that it goes together nicely with `reject` and its name is
17151715
pretty self-explanatory.
1716-
<sup>[[link](#map-fine-select-reduce-size)]</sup>
1716+
<sup>[[link](#map-find-select-reduce-size)]</sup>
17171717

17181718
* <a name="count-vs-size"></a>
17191719
Don't use `count` as a substitute for `size`. For `Enumerable` objects other

0 commit comments

Comments
 (0)