summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
Diffstat (limited to 'src/library')
-rw-r--r--src/library/scala/collection/MapLike.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/collection/MapLike.scala b/src/library/scala/collection/MapLike.scala
index 812d420331..55cea1a678 100644
--- a/src/library/scala/collection/MapLike.scala
+++ b/src/library/scala/collection/MapLike.scala
@@ -111,7 +111,7 @@ self =>
* @tparam B1 the result type of the default computation.
* @return the value assocuated with `key` if it exists,
* otherwise the result of the `default` computation.
- * @usecase getOrElse(key: A, default: => B): B
+ * @usecase def getOrElse(key: A, default: => B): B
*/
def getOrElse[B1 >: B](key: A, default: => B1): B1 = get(key) match {
case Some(v) => v