diff --git a/README.md b/README.md index ec5306fc6..3103266a0 100644 --- a/README.md +++ b/README.md @@ -1705,7 +1705,7 @@ condition](#safe-assignment-in-condition). end ``` -* +* Prefer `map` over `collect`, `find` over `detect`, `select` over `find_all`, `reduce` over `inject` and `size` over `length`. This is not a hard requirement; if the use of the alias enhances readability, it's ok to use it. @@ -1713,7 +1713,7 @@ condition](#safe-assignment-in-condition). programming languages. The reason the use of `select` is encouraged over `find_all` is that it goes together nicely with `reject` and its name is pretty self-explanatory. -[[link](#map-fine-select-reduce-size)] +[[link](#map-find-select-reduce-size)] * Don't use `count` as a substitute for `size`. For `Enumerable` objects other