summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanek Bogucki <janekdb@gmail.com>2015-08-31 21:42:11 +0100
committerJanek Bogucki <janekdb@gmail.com>2015-08-31 21:42:11 +0100
commit681cc075128de67279d8ce89423299da53e3e784 (patch)
tree76ad4be3d6c7e8fb125a47eef08c423a7d5722a8
parenta77e34e4b1ed445368b8412dbbf07340554afd57 (diff)
downloadscala-681cc075128de67279d8ce89423299da53e3e784.tar.gz
scala-681cc075128de67279d8ce89423299da53e3e784.tar.bz2
scala-681cc075128de67279d8ce89423299da53e3e784.zip
Improve implementation comments in Option.collect example
-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}
* }}}
*