summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authorMax Bileschi <mbileschi@twitter.com>2014-07-08 09:49:07 -0400
committerAntoine Gourlay <antoine@gourlay.fr>2014-08-11 17:54:43 +0200
commit730f311ff08fcf1a31e31200cc932511e77bc650 (patch)
treeeddf600f0d7596c725d4934f12bda97c6309048f /src/library
parent165d21e93c3f7c8b88b29d0a590fab571ba2d534 (diff)
downloadscala-730f311ff08fcf1a31e31200cc932511e77bc650.tar.gz
scala-730f311ff08fcf1a31e31200cc932511e77bc650.tar.bz2
scala-730f311ff08fcf1a31e31200cc932511e77bc650.zip
[backport] som-snytt's update to wording
(cherry picked from commit 80a9e908fd7b591a6fe452d908407d537675a999)
Diffstat (limited to 'src/library')
-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 6f63ceb94b..fba759eb32 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