diff options
author | Nobuyoshi Nakada <[email protected]> | 2020-04-07 13:59:38 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2020-04-07 13:59:38 +0900 |
commit | bc646e6715bc0113e800f4d7f4dec7bb34123cc1 (patch) | |
tree | 4e1663be22577642481789b1e7d345e912d56204 /re.c | |
parent | e73e4b3e9fa696926217b56b26c030570a3686c5 (diff) |
[DOC] get rid of parsing as TIDYLINK unintentionally
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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. */ |