Skip to content

Commit a57d6c4

Browse files
committed
Fix mistake in the trait bound
1 parent 5b5a56d commit a57d6c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/0000-contains-method-for-ranges.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Lacks of generics (see Alternatives).
5757

5858
This trait provides the method `.contains()` and implements it for all the Range types.
5959

60-
## Add a `.contains(item: Self::Item)` iterator method
60+
## Add a `.contains<I: PartialEq<Self::Item>>(i: I)` iterator method
6161

6262
This method returns a boolean, telling if the iterator contains the item given as parameter. Using method specialization, this can achieve the same performance as the method suggested in this RFC.
6363

0 commit comments

Comments
 (0)