diff options
author | Janek Bogucki <janekdb@gmail.com> | 2015-08-31 21:42:11 +0100 |
---|---|---|
committer | Janek Bogucki <janekdb@gmail.com> | 2015-08-31 21:42:11 +0100 |
commit | 681cc075128de67279d8ce89423299da53e3e784 (patch) | |
tree | 76ad4be3d6c7e8fb125a47eef08c423a7d5722a8 /src/library | |
parent | a77e34e4b1ed445368b8412dbbf07340554afd57 (diff) | |
download | scala-681cc075128de67279d8ce89423299da53e3e784.tar.gz scala-681cc075128de67279d8ce89423299da53e3e784.tar.bz2 scala-681cc075128de67279d8ce89423299da53e3e784.zip |
Improve implementation comments in Option.collect example
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/Option.scala | 2 |
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} * }}} * |