ruby-changes:48966
From: stomar <ko1@a...>
Date: Sat, 9 Dec 2017 07:42:24 +0900 (JST)
Subject: [ruby-changes:48966] stomar:r61085 (trunk): ext/strscan/strscan.c: [DOC] grammar fixes
stomar 2017-12-09 07:42:19 +0900 (Sat, 09 Dec 2017) New Revision: 61085 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61085 Log: ext/strscan/strscan.c: [DOC] grammar fixes Modified files: trunk/ext/strscan/strscan.c Index: ext/strscan/strscan.c =================================================================== --- ext/strscan/strscan.c (revision 61084) +++ ext/strscan/strscan.c (revision 61085) @@ -996,7 +996,7 @@ name_to_backref_number(struct re_registe https://github.com/ruby/ruby/blob/trunk/ext/strscan/strscan.c#L996 /* * call-seq: [](n) * - * Return the n-th subgroup in the most recent match. + * Returns the n-th subgroup in the most recent match. * * s = StringScanner.new("Fri Dec 12 1975 14:39") * s.scan(/(\w+) (\w+) (\d+) /) # -> "Fri Dec 12 " @@ -1055,7 +1055,7 @@ strscan_aref(VALUE self, VALUE idx) https://github.com/ruby/ruby/blob/trunk/ext/strscan/strscan.c#L1055 /* * call-seq: size * - * Return the amount of subgroups in the most recent match. + * Returns the amount of subgroups in the most recent match. * The full match counts as a subgroup. * * s = StringScanner.new("Fri Dec 12 1975 14:39") @@ -1139,7 +1139,7 @@ strscan_values_at(int argc, VALUE *argv, https://github.com/ruby/ruby/blob/trunk/ext/strscan/strscan.c#L1139 } /* - * Return the <i><b>pre</b>-match</i> (in the regular expression sense) of the last scan. + * Returns the <i><b>pre</b>-match</i> (in the regular expression sense) of the last scan. * * s = StringScanner.new('test string') * s.scan(/\w+/) # -> "test" @@ -1158,7 +1158,7 @@ strscan_pre_match(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/strscan/strscan.c#L1158 } /* - * Return the <i><b>post</b>-match</i> (in the regular expression sense) of the last scan. + * Returns the <i><b>post</b>-match</i> (in the regular expression sense) of the last scan. * * s = StringScanner.new('test string') * s.scan(/\w+/) # -> "test" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/