summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authorDongjoon Hyun <dongjoon@apache.org>2016-03-14 10:32:49 -0700
committerDongjoon Hyun <dongjoon@apache.org>2016-03-15 16:20:43 -0700
commit910a18ed14dd81150f008e785f8773bf997eb1f6 (patch)
tree655ea6d2b42e00ccd866435ed01d9dd91407dca6 /src/library
parent99a82be91cbb85239f70508f6695c6b21fd3558c (diff)
downloadscala-910a18ed14dd81150f008e785f8773bf997eb1f6.tar.gz
scala-910a18ed14dd81150f008e785f8773bf997eb1f6.tar.bz2
scala-910a18ed14dd81150f008e785f8773bf997eb1f6.zip
Fix some typos in `spec` documents and comments.
Diffstat (limited to 'src/library')
-rw-r--r--src/library/scala/concurrent/impl/Promise.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/concurrent/impl/Promise.scala b/src/library/scala/concurrent/impl/Promise.scala
index 178cd6d912..626540425f 100644
--- a/src/library/scala/concurrent/impl/Promise.scala
+++ b/src/library/scala/concurrent/impl/Promise.scala
@@ -304,7 +304,7 @@ private[concurrent] object Promise {
/** Tries to add the callback, if already completed, it dispatches the callback to be executed.
* Used by `onComplete()` to add callbacks to a promise and by `link()` to transfer callbacks
- * to the root promise when linking two promises togehter.
+ * to the root promise when linking two promises together.
*/
@tailrec
private def dispatchOrAddCallback(runnable: CallbackRunnable[T]): Unit = {