Skip to content

Commit

Permalink
Merge pull request scala#7079 from xuwei-k/Iterable-partition-doc
Browse files Browse the repository at this point in the history
fix Iterable#partition scaladoc
  • Loading branch information
julienrf authored Aug 16, 2018
2 parents 3a50d9f + 368b9fc commit 8c79a0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library/scala/collection/Iterable.scala
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ trait IterableOps[+A, +CC[_], +C] extends Any with IterableOnce[A] with Iterable
* all elements that do not. Interesting because it splits a collection in two.
*
* The default implementation provided here needs to traverse the collection twice.
* Strict collections have an overridden version of `partition` in `Buildable`,
* Strict collections have an overridden version of `partition` in `StrictOptimizedIterableOps`,
* which requires only a single traversal.
*/
def partition(p: A => Boolean): (C, C) = {
Expand Down

0 comments on commit 8c79a0f

Please sign in to comment.