summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authorSeth Tisue <seth@tisue.net>2015-09-02 15:00:22 -0400
committerSeth Tisue <seth@tisue.net>2015-09-02 15:00:22 -0400
commit1e47a730a9fbe7d4f465bb241272169cfefa14e6 (patch)
tree3eca51d311294037649d3fc12145eca0e12ee42f /src/library
parent2ca3f8b7a0e526ee255dad60f79b0fb33bad5d39 (diff)
parent681cc075128de67279d8ce89423299da53e3e784 (diff)
downloadscala-1e47a730a9fbe7d4f465bb241272169cfefa14e6.tar.gz
scala-1e47a730a9fbe7d4f465bb241272169cfefa14e6.tar.bz2
scala-1e47a730a9fbe7d4f465bb241272169cfefa14e6.zip
Merge pull request #4701 from janekdb/2.11.x-scaladoc-in-context-Option
Improve comment in Option.collect example
Diffstat (limited to 'src/library')
-rw-r--r--src/library/scala/Option.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/Option.scala b/src/library/scala/Option.scala
index f134f5ce3d..7282feebb6 100644
--- a/src/library/scala/Option.scala
+++ b/src/library/scala/Option.scala
@@ -270,7 +270,7 @@ sealed abstract class Option[+A] extends Product with Serializable {
* // Returns None because the partial function doesn't cover the case.
* Some("ftp") collect {case "http" => "HTTP"}
*
- * // Returns None because None is passed to the collect method.
+ * // Returns None because the option is empty. There is no value to pass to the partial function.
* None collect {case value => value}
* }}}
*