Skip to content

Commit 7b18bce

Browse files
committed
Address smaller changes
1 parent 6650110 commit 7b18bce

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

library/src/scala/collection/Iterable.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,15 +467,15 @@ transparent trait IterableOps[+A, +CC[_], +C] extends Any with IterableOnce[A] w
467467
* @return a $coll consisting of all elements of this $coll except the last `n` ones, or else the
468468
* empty $coll, if this $coll has less than `n` elements.
469469
* If `n` is negative, don't drop any elements.
470-
^{this} */
470+
*/
471471
def dropRight(n: Int): C^{this} = fromSpecific(new View.DropRight(this, n))
472472

473473
def dropWhile(p: A => Boolean): C^{this, p} = fromSpecific(new View.DropWhile(this, p))
474474

475475
/** Partitions elements in fixed size ${coll}s.
476476
* @see [[scala.collection.Iterator]], method `grouped`
477477
*
478-
* @param si^{this}ze the number of elements per group
478+
* @param size the number of elements per group
479479
* @return An iterator producing ${coll}s of size `size`, except the
480480
* last will be less than size `size` if the elements don't divide evenly.
481481
*/

library/src/scala/collection/mutable/LongMap.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ final class LongMap[V] private[collection] (defaultEntry: Long -> V, initialBuff
470470

471471
@deprecated("Use ++ with an explicit collection argument instead of + with varargs", "2.13.0")
472472
override def + [V1 >: V](elem1: (Long, V1), elem2: (Long, V1), elems: (Long, V1)*): LongMap[V1]^{} = {
473-
// An empty capture annotation is needed in the result type to satisfy the overriding checker.
473+
// TODO: An empty capture annotation is needed in the result type to satisfy the overriding checker.
474474
val m = this + elem1 + elem2
475475
if(elems.isEmpty) m else m.concat(elems)
476476
}

library/src/scala/collection/mutable/TreeMap.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ sealed class TreeMap[K, V] private (tree: RB.Tree[K, V])(implicit val ordering:
168168
* bound.
169169
*/
170170
private[this] final class TreeMapProjection(from: Option[K], until: Option[K]) extends TreeMap[K, V](tree) {
171-
this: TreeMapProjection^{} =>
172171

173172
/**
174173
* Given a possible new lower bound, chooses and returns the most constraining one (the maximum).

0 commit comments

Comments
 (0)