1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-12-04 03:25:08 +02:00

Add reference to collect, FromIterator

This commit is contained in:
Fabian Bornhofen 2023-01-10 11:40:02 +01:00
parent b1069f863c
commit d1a3290cd6

View File

@ -39,4 +39,6 @@ fn main() {
}
```
[`collect`](https://doc.rust-lang.org/stable/std/iter/trait.Iterator.html#method.collect) relies on `FromIterator`, which [`HashSet`](https://doc.rust-lang.org/std/iter/trait.FromIterator.html) implements.
</details>