diff --git a/ChangeLog b/ChangeLog index cfaea93003..3990d81c0d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Oct 25 06:34:39 2011 Eric Hodel + + * re.c (match_aref): Use around indexing examples to prevent + hyperlinks. [ruby-talk:389396] + Mon Oct 24 23:55:31 2011 Tanaka Akira * complex.c: use "__sun" instead of "__sun__" to detect SunOS. diff --git a/re.c b/re.c index 6484baa664..add296373d 100644 --- a/re.c +++ b/re.c @@ -1674,11 +1674,12 @@ name_to_backref_number(struct re_registers *regs, VALUE regexp, const char* name * mtch[range] -> array * mtch[name] -> str or nil * - * Match Reference---MatchData acts as an array, and may be - * accessed using the normal array indexing techniques. mtch[0] is - * equivalent to the special variable $&, and returns the entire - * matched string. mtch[1], mtch[2], and so on return the values - * of the matched backreferences (portions of the pattern between parentheses). + * Match Reference -- MatchData acts as an array, and may be + * accessed using the normal array indexing techniques. mtch[0] + * is equivalent to the special variable $&, and returns the + * entire matched string. mtch[1], mtch[2], and so + * on return the values of the matched backreferences (portions of the + * pattern between parentheses). * * m = /(.)(.)(\d+)(\d)/.match("THX1138.") * m #=> #