Skip to content

Commit 8d4e042

Browse files
Do not mention specializing collect
In libcore, no adaptor specialize `collect` so I'm not sure why we should.
1 parent d8c785f commit 8d4e042

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

CONTRIBUTING.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ Most of the time, we want specializations of:
5858

5959
Additionally,
6060

61-
- [`collect`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.collect)
62-
might make collection faster than calling `next` repeatedly.
6361
- `for_each`, `reduce`, `max/min[_by[_key]]` and `partition` all rely on `fold` so you should specialize it instead.
6462
- `all`, `any`, `find`, `find_map`, `cmp`, `partial_cmp`, `eq`, `ne`, `lt`, `le`, `gt`, `ge` and `position` all rely (by default) on `try_fold`
6563
which we can not specialize on stable rust, so you might want to wait it stabilizes

0 commit comments

Comments
 (0)