* doc/re.rdoc: Fix spelling

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2012-07-24 21:54:50 +00:00
parent a10f6137cc
commit b8903f88f4
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,7 @@
Wed Jul 25 06:54:24 2012 Eric Hodel <drbrain@segment7.net>
* doc/re.rdoc: Fix spelling
Wed Jul 25 06:49:12 2012 Eric Hodel <drbrain@segment7.net> Wed Jul 25 06:49:12 2012 Eric Hodel <drbrain@segment7.net>
* re.c (rb_reg_s_last_match): Update $~ to reference Regexp * re.c (rb_reg_s_last_match): Update $~ to reference Regexp

View file

@ -250,7 +250,7 @@ quantified as one <i>atomic</i> whole.
The <tt>(?:</tt>...<tt>)</tt> construct provides grouping without The <tt>(?:</tt>...<tt>)</tt> construct provides grouping without
capturing. That is, it combines the terms it contains into an atomic whole capturing. That is, it combines the terms it contains into an atomic whole
without creating a backreference. This benefits performance at the slight without creating a backreference. This benefits performance at the slight
expense of readabilty. expense of readability.
# The group of parentheses captures 'n' and the second 'ti'. The # The group of parentheses captures 'n' and the second 'ti'. The
# second group is referred to later with the backreference \2 # second group is referred to later with the backreference \2
@ -271,7 +271,7 @@ it matches becomes fixed for the remainder of the match, unless the entire
subexpression must be abandoned and subsequently revisited. In this subexpression must be abandoned and subsequently revisited. In this
way <i>pat</i> is treated as a non-divisible whole. Atomic grouping is way <i>pat</i> is treated as a non-divisible whole. Atomic grouping is
typically used to optimise patterns so as to prevent the regular typically used to optimise patterns so as to prevent the regular
expression engine from backtracking needlesly. expression engine from backtracking needlessly.
# The <tt>"</tt> in the pattern below matches the first character of # The <tt>"</tt> in the pattern below matches the first character of
# the string, then <tt>.*</tt> matches <i>Quote"</i>. This causes the # the string, then <tt>.*</tt> matches <i>Quote"</i>. This causes the
@ -594,7 +594,7 @@ Example:
$+ #=> "c" $+ #=> "c"
# same as m[-1] # same as m[-1]
These global variables are thread-local and method-local varaibles. These global variables are thread-local and method-local variables.
== Performance == Performance