From f618939a3baf4eb53750eb753e30b91b910dc258 Mon Sep 17 00:00:00 2001 From: Jasper-M Date: Tue, 3 Jan 2017 12:44:03 +0100 Subject: Fix documentation of immutable.Queue `enqueue` appends elements to the `Queue`, it doesn't prepend them. --- src/library/scala/collection/immutable/Queue.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/library') diff --git a/src/library/scala/collection/immutable/Queue.scala b/src/library/scala/collection/immutable/Queue.scala index 53af3ce158..16cdc6d080 100644 --- a/src/library/scala/collection/immutable/Queue.scala +++ b/src/library/scala/collection/immutable/Queue.scala @@ -110,7 +110,7 @@ class Queue[+A] protected(protected val in: List[A], protected val out: List[A]) /** Returns a new queue with all elements provided by an `Iterable` object * added at the end of the queue. * - * The elements are prepended in the order they are given out by the + * The elements are appended in the order they are given out by the * iterator. * * @param iter an iterable object -- cgit v1.2.3