summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-07 13:59:38 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-07 13:59:38 +0900
commitbc646e6715bc0113e800f4d7f4dec7bb34123cc1 (patch)
tree4e1663be22577642481789b1e7d345e912d56204 /re.c
parente73e4b3e9fa696926217b56b26c030570a3686c5 (diff)
[DOC] get rid of parsing as TIDYLINK unintentionally
Diffstat (limited to 're.c')
-rw-r--r--re.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/re.c b/re.c
index 44418ec064..4f39e6058a 100644
--- a/re.c
+++ b/re.c
@@ -924,12 +924,12 @@ make_regexp(const char *s, long len, rb_encoding *enc, int flags, onig_errmsg_bu
* aliased as global variables:
*
* * <code>$~</code> is Regexp.last_match;
- * * <code>$&</code> is Regexp.last_match<code>[0]</code>;
+ * * <code>$&</code> is Regexp.last_match<code>[ 0 ]</code>;
* * <code>$1</code>, <code>$2</code>, and so on are
- * Regexp.last_match<code>[i]</code> (captures by number);
+ * Regexp.last_match<code>[ i ]</code> (captures by number);
* * <code>$`</code> is Regexp.last_match<code>.pre_match</code>;
* * <code>$'</code> is Regexp.last_match<code>.post_match</code>;
- * * <code>$+</code> is Regexp.last_match<code>[-1]</code> (the last capture).
+ * * <code>$+</code> is Regexp.last_match<code>[ -1 ]</code> (the last capture).
*
* See also "Special global variables" section in Regexp documentation.
*/