summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormartijnhoekstra <martijnhoekstra@gmail.com>2014-02-25 23:14:17 +0100
committermartijnhoekstra <martijnhoekstra@gmail.com>2014-02-25 23:14:17 +0100
commitc1cb5e4133dc1ea3368b89fb99649e90a64e1569 (patch)
tree9e54008db20f50732897b43b2209ad7c9b41395c
parentb4ff1e934f36af6792b29b3d850cee836aa7b050 (diff)
downloadscala-c1cb5e4133dc1ea3368b89fb99649e90a64e1569.tar.gz
scala-c1cb5e4133dc1ea3368b89fb99649e90a64e1569.tar.bz2
scala-c1cb5e4133dc1ea3368b89fb99649e90a64e1569.zip
minor typos in the doc of applyOrElse
-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 9ff648a05a..7f4a9dc45d 100644
--- a/src/library/scala/PartialFunction.scala
+++ b/src/library/scala/PartialFunction.scala
@@ -94,7 +94,7 @@ trait PartialFunction[-A, +B] extends (A => B) { self =>
* Note that expression `pf.applyOrElse(x, default)` is equivalent to
* {{{ if(pf isDefinedAt x) pf(x) else default(x) }}}
* except that `applyOrElse` method can be implemented more efficiently.
- * For all partial function literals compiler generates `applyOrElse` implementation which
+ * For all partial function literals the compiler generates an `applyOrElse` implementation which
* avoids double evaluation of pattern matchers and guards.
* This makes `applyOrElse` the basis for the efficient implementation for many operations and scenarios, such as:
*