From 730f311ff08fcf1a31e31200cc932511e77bc650 Mon Sep 17 00:00:00 2001 From: Max Bileschi Date: Tue, 8 Jul 2014 09:49:07 -0400 Subject: [backport] som-snytt's update to wording (cherry picked from commit 80a9e908fd7b591a6fe452d908407d537675a999) --- src/library/scala/PartialFunction.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/library') 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 -- cgit v1.2.3