summaryrefslogtreecommitdiff
path: root/string.rb
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2023-03-16 18:37:19 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2023-03-16 18:37:19 +0900
commit5cffa69c1babb80be17d2544a430dce0f2c22b4e (patch)
treeef27b92850be2a1db8b79efc5faf67a42d180d67 /string.rb
parent90d3bbb52bbc4159285cf4437290fc982259ebf0 (diff)
downloadruby-5cffa69c1babb80be17d2544a430dce0f2c22b4e.tar.gz
[DOC] Add missing escape
Before: ``` * + corresponds to $+, which contains last capture group. ``` After: ``` * \+ corresponds to $+, which contains last capture group. ```
Diffstat (limited to 'string.rb')
-rw-r--r--string.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.rb b/string.rb
index b410e09395..be10b407b0 100644
--- a/string.rb
+++ b/string.rb
@@ -90,7 +90,7 @@
# which contains string after match.
# - <tt>\`</tt> corresponds to <tt>$`</tt>,
# which contains string before match.
-# - <tt>\+</tt> corresponds to <tt>$+</tt>,
+# - <tt>\\+</tt> corresponds to <tt>$+</tt>,
# which contains last capture group.
#
# See rdoc-ref:regexp.rdoc for details.