Skip to content

Commit 04a1b70

Browse files
authored
Update Queue.scala (scala/scala#8695)
Fix typo in the docs. "from element" should be the "first element"
1 parent 1272730 commit 04a1b70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/scala/collection/mutable/Queue.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class Queue[A] protected (array: Array[AnyRef], start: Int, end: Int)
6767
def enqueueAll(elems: scala.collection.IterableOnce[A]): this.type = this ++= elems
6868

6969
/**
70-
* Removes the from element from this queue and return it
70+
* Removes the first element from this queue and returns it
7171
*
7272
* @return
7373
* @throws java.util.NoSuchElementException when queue is empty

0 commit comments

Comments
 (0)