diff options
author | Paul Phillips <paulp@improving.org> | 2011-07-16 05:52:37 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-07-16 05:52:37 +0000 |
commit | 9a7744dcaf5ba876a6775c3112e57bb37d4bfbba (patch) | |
tree | f2b6d01b38ece14d48befb819346fd19c6e0626b /src/library/scala/util/matching/Regex.scala | |
parent | 1fc6f7eb4effbdaf209f0eb44547d092feaa17dc (diff) | |
download | scala-9a7744dcaf5ba876a6775c3112e57bb37d4bfbba.tar.gz scala-9a7744dcaf5ba876a6775c3112e57bb37d4bfbba.tar.bz2 scala-9a7744dcaf5ba876a6775c3112e57bb37d4bfbba.zip |
Some post-facto patch cleanups, no review.
Diffstat (limited to 'src/library/scala/util/matching/Regex.scala')
-rw-r--r-- | src/library/scala/util/matching/Regex.scala | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/library/scala/util/matching/Regex.scala b/src/library/scala/util/matching/Regex.scala index 481a4e14a8..ac1cfa2705 100644 --- a/src/library/scala/util/matching/Regex.scala +++ b/src/library/scala/util/matching/Regex.scala @@ -413,11 +413,8 @@ object Regex { def unapply(m: Match): Some[String] = Some(m.matched) } - /** An extractor object that yields groups in the match. The main - * advantage of using this is extractor instead of using the original - * regex is that this avoids rematching the string. - * - * For example: + /** An extractor object that yields the groups in the match. Using an extractor + * rather than the original regex avoids recomputing the match. * * {{{ * import scala.util.matching.Regex.Groups |