summaryrefslogtreecommitdiff
path: root/string.rb
diff options
context:
space:
mode:
authorAlexander Ilyin <alexander.ilyin11@gmail.com>2022-06-09 21:40:21 +0300
committerGitHub <noreply@github.com>2022-06-09 13:40:21 -0500
commitadcfd6969070c3c51b35221d183728bbde8b8539 (patch)
tree8ccfa51e682531b2c9b70e8b32e44f0f51674b5f /string.rb
parent473ee328c5be01ac6bb29659afcbe3361664bf68 (diff)
[DOC] Fix markup for `String` (#5984)
* Add missing space for `String#start_with?`. * Add missing pluses for `String#tr` and `Methods for Converting to New String` label. * Move quote into the tag for `Whitespace in Strings` label.
Notes
Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
Diffstat (limited to 'string.rb')
-rw-r--r--string.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/string.rb b/string.rb
index 22641fba3e..b410e09395 100644
--- a/string.rb
+++ b/string.rb
@@ -143,7 +143,7 @@
# consisting of any mixture of the following:
#
# - NL (null): <tt>"\x00"</tt>, <tt>"\u0000"</tt>.
-# - HT (horizontal tab): <tt>"\x09"</tt>, "<tt>\t"</tt>.
+# - HT (horizontal tab): <tt>"\x09"</tt>, <tt>"\t"</tt>.
# - LF (line feed): <tt>"\x0a"</tt>, <tt>"\n"</tt>.
# - VT (vertical tab): <tt>"\x0b"</tt>, <tt>"\v"</tt>.
# - FF (form feed): <tt>"\x0c"</tt>, <tt>"\f"</tt>.
@@ -452,9 +452,9 @@
#
# _Substitution_
#
-# - #dump: Returns a copy of +self with all non-printing characters replaced by \xHH notation
+# - #dump: Returns a copy of +self+ with all non-printing characters replaced by \xHH notation
# and all special characters escaped.
-# - #undump: Returns a copy of +self with all <tt>\xNN</tt> notation replace by <tt>\uNNNN</tt> notation
+# - #undump: Returns a copy of +self+ with all <tt>\xNN</tt> notation replace by <tt>\uNNNN</tt> notation
# and all escaped characters unescaped.
# - #sub: Returns a copy of +self+ with the first substring matching a given pattern
# replaced with a given replacement string;.