Skip to content

Commit e413c47

Browse files
committed
Undeprecate IterableOnceOps#toBuffer
1 parent f40ff2e commit e413c47

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

library/src/scala/collection/IterableOnce.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,8 +1193,7 @@ trait IterableOnceOps[+A, +CC[_], +C] extends Any { this: IterableOnce[A] =>
11931193
@deprecated("Use .to(Stream) instead of .toStream", "2.13.0")
11941194
@`inline` final def toStream: immutable.Stream[A] = to(immutable.Stream)
11951195

1196-
@deprecated("Use .to(Buffer) instead of .toBuffer", "2.13.0")
1197-
@`inline` final def toBuffer[B >: A]: mutable.Buffer[B] = to(mutable.Buffer)
1196+
@`inline` final def toBuffer[B >: A]: mutable.Buffer[B] = mutable.Buffer.from(this)
11981197

11991198
/** Convert collection to array. */
12001199
def toArray[B >: A: ClassTag]: Array[B] =

0 commit comments

Comments
 (0)