From 9a26a4c13a7686752c70fd7d7363f08f339a1b82 Mon Sep 17 00:00:00 2001 From: stomar Date: Fri, 8 Dec 2017 22:42:19 +0000 Subject: ext/strscan/strscan.c: [DOC] grammar fixes git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/strscan/strscan.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ext') diff --git a/ext/strscan/strscan.c b/ext/strscan/strscan.c index c70b94dd8b..d6168a0d4f 100644 --- a/ext/strscan/strscan.c +++ b/ext/strscan/strscan.c @@ -996,7 +996,7 @@ name_to_backref_number(struct re_registers *regs, VALUE regexp, const char* name /* * 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) /* * 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, VALUE self) } /* - * Return the pre-match (in the regular expression sense) of the last scan. + * Returns the pre-match (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) } /* - * Return the post-match (in the regular expression sense) of the last scan. + * Returns the post-match (in the regular expression sense) of the last scan. * * s = StringScanner.new('test string') * s.scan(/\w+/) # -> "test" -- cgit v1.2.3