diff options
author | Max Bileschi <mbileschi@twitter.com> | 2014-06-12 17:32:52 -0400 |
---|---|---|
committer | Max Bileschi <mbileschi@twitter.com> | 2014-06-12 17:32:52 -0400 |
commit | 455bcd65c055119f928b3367839f0093cf0e251a (patch) | |
tree | 0480e58827377615b6aebe6d99e1b574607d46aa /src/library | |
parent | f7d2cec3a0c31836747a25e3cc5949d1f3cbdff4 (diff) | |
download | scala-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')
-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 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: |