ruby-changes:21474
From: drbrain <ko1@a...>
Date: Tue, 25 Oct 2011 06:35:39 +0900 (JST)
Subject: [ruby-changes:21474] drbrain:r33522 (trunk): * re.c (match_aref): Use <code> around indexing examples to prevent
drbrain 2011-10-25 06:35:05 +0900 (Tue, 25 Oct 2011) New Revision: 33522 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33522 Log: * re.c (match_aref): Use <code> around indexing examples to prevent hyperlinks. [ruby-talk:389396] Modified files: trunk/ChangeLog trunk/re.c Index: ChangeLog =================================================================== --- ChangeLog (revision 33521) +++ ChangeLog (revision 33522) @@ -1,3 +1,8 @@ +Tue Oct 25 06:34:39 2011 Eric Hodel <drbrain@s...> + + * re.c (match_aref): Use <code> around indexing examples to prevent + hyperlinks. [ruby-talk:389396] + Mon Oct 24 23:55:31 2011 Tanaka Akira <akr@f...> * complex.c: use "__sun" instead of "__sun__" to detect SunOS. Index: re.c =================================================================== --- re.c (revision 33521) +++ re.c (revision 33522) @@ -1674,11 +1674,12 @@ * mtch[range] -> array * mtch[name] -> str or nil * - * Match Reference---<code>MatchData</code> acts as an array, and may be - * accessed using the normal array indexing techniques. <i>mtch</i>[0] is - * equivalent to the special variable <code>$&</code>, and returns the entire - * matched string. <i>mtch</i>[1], <i>mtch</i>[2], and so on return the values - * of the matched backreferences (portions of the pattern between parentheses). + * Match Reference -- <code>MatchData</code> acts as an array, and may be + * accessed using the normal array indexing techniques. <code>mtch[0]</code> + * is equivalent to the special variable <code>$&</code>, and returns the + * entire matched string. <code>mtch[1]</code>, <code>mtch[2]</code>, and so + * on return the values of the matched backreferences (portions of the + * pattern between parentheses). * * m = /(.)(.)(\d+)(\d)/.match("THX1138.") * m #=> #<MatchData "HX1138" 1:"H" 2:"X" 3:"113" 4:"8"> -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/