summaryrefslogtreecommitdiff
path: root/src/library/scala/PartialFunction.scala
diff options
context:
space:
mode:
authorMax Bileschi <mbileschi@twitter.com>2014-06-12 17:32:52 -0400
committerMax Bileschi <mbileschi@twitter.com>2014-06-12 17:32:52 -0400
commit455bcd65c055119f928b3367839f0093cf0e251a (patch)
tree0480e58827377615b6aebe6d99e1b574607d46aa /src/library/scala/PartialFunction.scala
parentf7d2cec3a0c31836747a25e3cc5949d1f3cbdff4 (diff)
downloadscala-455bcd65c055119f928b3367839f0093cf0e251a.tar.gz
scala-455bcd65c055119f928b3367839f0093cf0e251a.tar.bz2
scala-455bcd65c055119f928b3367839f0093cf0e251a.zip
Update PartialFunction documentation to include the fact that the caller is responsible for checking 'isDefinedAt'
Diffstat (limited to 'src/library/scala/PartialFunction.scala')
-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 7eb0f51660..05888921d9 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: