2.11.x collection documentation fixes#4760
Conversation
5cb72a5 to
edf72b8
Compare
c9762dc to
efc7465
Compare
c9dbf06 to
95aa214
Compare
Align parameters names to use p for predicates and op for combining operations. Based on scala#4760. Extended to include, - Tuple2Zipped - Tuple3Zipped - Either The original author was vsalvis.
Align parameters names to use p for predicates and op for combining operations. Based on scala#4760. Extended to include, - Tuple2Zipped - Tuple3Zipped - Either The original author was vsalvis.
Align parameters names to use p for predicates and op for combining operations. Based on scala#4760. Extended to include, - Tuple2Zipped - Tuple3Zipped - Either The original author was vsalvis.
e61f646 to
34237a6
Compare
There was a problem hiding this comment.
Prefer satisfies phrasing.
There was a problem hiding this comment.
I also still prefer satisfies
34237a6 to
c4a3d9e
Compare
There was a problem hiding this comment.
Question about applying this change to two other traits.
TraversableLike could also have this method and documentation deleted. It would inherit the method indirectly from GenTraversableOnce.
TraversableOnce also inherits foreach from GenTraversableOnce so it could be deleted as well.
Would this be safe to do?
There was a problem hiding this comment.
We're trying to simplify the collections, which may mean that the whole Gen hierarchy goes away (since it is generalizing over serial vs. parallel collections). To prevent extra future work, I wouldn't remove anything from X just because it also is found in GenX.
There was a problem hiding this comment.
I will restrict the change to removing the duplicated documentation in TraversableLike.
c4a3d9e to
e467b75
Compare
There was a problem hiding this comment.
Starting a paragraph with "So" is somewhat inelegant.
e467b75 to
9891468
Compare
There was a problem hiding this comment.
From where will these docs come if they're deleted here?
There was a problem hiding this comment.
The documentation from GenTraversableOnce is used. I have confirmed this by building the docs after adding a some unique text to GenTraversableOnce to be sure of the source.
0f5332e to
93dd8a6
Compare
15f972d to
f6d5752
Compare
|
/rebuild |
2652b0e to
63afdd6
Compare
63afdd6 to
e818e52
Compare
|
Thanks. |
e818e52 to
4830d4d
Compare
- Remove some duplicate method documentation that is now inherited
- Whitespace edits
- Rewording of method docs
- Clearer usage examples
- tparam alignment for some usecase tags
- Prefer () to { } for do nothing bodies
4830d4d to
e3cbcd5
Compare
|
@SethTisue - please take off Review by @heathermiller , @dickwall , @som-snytt , @Ichoran . |
|
LGTM - there are a lot of changes here but I spot no mistakes. Will wait for at least one more LGTM (double check) on this latest round of changes before merging. Ping @heathermiller, @som-snytt or @Ichoran |
|
@Ichoran, could you take another look? |
|
Not @Ichoran, but LGTM. |
|
Thanks! |
…-fixes-previously-4651 2.11.x collection documentation fixes
This PR started life as #4651.
The bulk of it was separated out into more focused PRs,
#4765 - ScalaDoc comparison script
#4789 - Parameter and type renaming
#4803 - tparam naming consistency
Original PR comment
TODO
on-holdDONE
@deprecatedName('previousName)where parameter names have changedfind,exists,foralllocating offenders withdef forall\([^p]etcDoc fix for GenTraversableOnce.aggregatetoDoc fixes for GenTraversableOnce.foreachwhere all the other tparam name change are to be found.TreeMap,Iterator,IntMap&LongMapto Doc fixes for GenTraversableOnce.foreachtparamchanges (and some whitespace edits)tparamchangesGenTraversableOnce.scala': def foreach[U](f: A => U): Unitby editing Doc fixes for collection/packageDoc fixes for GenTraversableOnce.fold, foldLeft and foldRight&Doc fixes for copyToArray in TraversableLike and GenTraversableOncetoImprove collections documentationDoc fixes for TraversableLikeintoImprove collections documentationDoc fix for GenTraversableOnce.aggregateintoImprove collections documentationforeachinDoc fixes for collection/packageDoc fixes for collection/packageintoImprove collections documentationAnyRefMap.scala)1️⃣ This was temporarily added to get past a
git rebase --continueproblem.