summaryrefslogtreecommitdiff
path: root/src/library/scala/PartialFunction.scala
diff options
context:
space:
mode:
authorMax Bileschi <mbileschi@twitter.com>2014-07-08 09:49:07 -0400
committerMax Bileschi <mbileschi@twitter.com>2014-07-08 09:49:07 -0400
commit80a9e908fd7b591a6fe452d908407d537675a999 (patch)
treec453bb3aff063153bb5b65d0bd17bdb3c8f85dbb /src/library/scala/PartialFunction.scala
parent71bc2e5f4c49463a754a6f23e3abd2d27467fca4 (diff)
downloadscala-80a9e908fd7b591a6fe452d908407d537675a999.tar.gz
scala-80a9e908fd7b591a6fe452d908407d537675a999.tar.bz2
scala-80a9e908fd7b591a6fe452d908407d537675a999.zip
som-snytt's update to wording
Diffstat (limited to 'src/library/scala/PartialFunction.scala')
-rw-r--r--src/library/scala/PartialFunction.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/scala/PartialFunction.scala b/src/library/scala/PartialFunction.scala
index 045ea319d9..98dd35d306 100644
--- a/src/library/scala/PartialFunction.scala
+++ b/src/library/scala/PartialFunction.scala
@@ -22,9 +22,9 @@ package scala
* }}}
*
* It is the responsibility of the caller to call `isDefinedAt` before
- * before calling `apply`, because if `isDefinedAt` is false, an exception
- * may or may not be thrown. In the case that an exception is not thrown,
- * an insane value may be returned.
+ * calling `apply`, because if `isDefinedAt` is false, it is not guaranteed
+ * `apply` will throw an exception to indicate an error condition. If an
+ * exception is not thrown, evaluation may result in an arbitrary value.
*
* The main distinction between `PartialFunction` and [[scala.Function1]] is
* that the user of a `PartialFunction` may choose to do something different