diff options
author | Max Bileschi <mbileschi@twitter.com> | 2014-06-12 17:32:52 -0400 |
---|---|---|
committer | Antoine Gourlay <antoine@gourlay.fr> | 2014-08-11 17:54:22 +0200 |
commit | 70d8aaacae0f3620dcce3a981978695eb6e9488a (patch) | |
tree | 6b3a34c127d5a7f39fe5dad4ee251b2928456369 /src/library | |
parent | f7e7f70a98f147007ee660d81094836e1dfea6e7 (diff) | |
download | scala-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.scala | 2 |
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: |