scala / bug

Scala 2 bug reports only. Please, no questions — proper bug reports only.
https://scala-lang.org
230 stars 21 forks source link

Buffer.padTo calls it shrinkable instead of growable #12908

Open som-snytt opened 7 months ago

som-snytt commented 7 months ago

Reproduction steps

https://www.scala-lang.org/api/current/scala/collection/mutable/Buffer.html#padTo[B%3E:A](len:Int,elem:B):CC[B]

Problem

It's growable & shrinkable, but growing methods should call it growable.

There is a ticket for nuanced CC vs C or something, so it is probably the same effort to chisel how collections refer to themselves in doc macros.

SethTisue commented 5 months ago

@scala/collections

som-snytt commented 5 months ago

Could use a George Costanza "I was in the pool!" meme.