summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJasper-M <jaspermoeys@hotmail.com>2017-01-03 12:44:03 +0100
committerGitHub <noreply@github.com>2017-01-03 12:44:03 +0100
commitf618939a3baf4eb53750eb753e30b91b910dc258 (patch)
treeecc7143a1279ede6163d9922e20627e7d9e5da74 /src
parent23548c4301e48cb69f05cd01ceba418dc9c36d6c (diff)
downloadscala-f618939a3baf4eb53750eb753e30b91b910dc258.tar.gz
scala-f618939a3baf4eb53750eb753e30b91b910dc258.tar.bz2
scala-f618939a3baf4eb53750eb753e30b91b910dc258.zip
Fix documentation of immutable.Queue
`enqueue` appends elements to the `Queue`, it doesn't prepend them.
Diffstat (limited to 'src')
-rw-r--r--src/library/scala/collection/immutable/Queue.scala2
1 files changed, 1 insertions, 1 deletions
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