File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments