summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authorMax Bileschi <mbileschi@twitter.com>2014-06-12 17:32:52 -0400
committerAntoine Gourlay <antoine@gourlay.fr>2014-08-11 17:54:22 +0200
commit70d8aaacae0f3620dcce3a981978695eb6e9488a (patch)
tree6b3a34c127d5a7f39fe5dad4ee251b2928456369 /src/library
parentf7e7f70a98f147007ee660d81094836e1dfea6e7 (diff)
downloadscala-70d8aaacae0f3620dcce3a981978695eb6e9488a.tar.gz
scala-70d8aaacae0f3620dcce3a981978695eb6e9488a.tar.bz2
scala-70d8aaacae0f3620dcce3a981978695eb6e9488a.zip
[backport] Update PartialFunction documentation to include the fact that the caller is responsible for checking 'isDefinedAt'
(cherry picked from commit 455bcd65c055119f928b3367839f0093cf0e251a)
Diffstat (limited to 'src/library')
-rw-r--r--src/library/scala/PartialFunction.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/PartialFunction.scala b/src/library/scala/PartialFunction.scala
index 865dc32404..012a85d06e 100644
--- a/src/library/scala/PartialFunction.scala
+++ b/src/library/scala/PartialFunction.scala
@@ -12,7 +12,7 @@ package scala
/** A partial function of type `PartialFunction[A, B]` is a unary function
* where the domain does not necessarily include all values of type `A`.
* The function `isDefinedAt` allows to test dynamically if a value is in
- * the domain of the function.
+ * the domain of the function.
*
* Even if `isDefinedAt` returns true for an `a: A`, calling `apply(a)` may
* still throw an exception, so the following code is legal: