summaryrefslogtreecommitdiff
path: root/ext/strscan
diff options
context:
space:
mode:
authorstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-08 22:42:19 +0000
committerstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-08 22:42:19 +0000
commit9a26a4c13a7686752c70fd7d7363f08f339a1b82 (patch)
tree65f94d93271673321cef69388478313f9461513c /ext/strscan
parent86ea8dfed7c04ff20a0fa0e923eb90dcc384cfff (diff)
ext/strscan/strscan.c: [DOC] grammar fixes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/strscan')
-rw-r--r--ext/strscan/strscan.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/strscan/strscan.c b/ext/strscan/strscan.c
index c70b94d..d6168a0 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 <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)
}
/*
- * 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"