From adcfd6969070c3c51b35221d183728bbde8b8539 Mon Sep 17 00:00:00 2001 From: Alexander Ilyin Date: Thu, 9 Jun 2022 21:40:21 +0300 Subject: [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. --- string.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'string.rb') 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): "\x00", "\u0000". -# - HT (horizontal tab): "\x09", "\t". +# - HT (horizontal tab): "\x09", "\t". # - LF (line feed): "\x0a", "\n". # - VT (vertical tab): "\x0b", "\v". # - FF (form feed): "\x0c", "\f". @@ -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 \xNN notation replace by \uNNNN notation +# - #undump: Returns a copy of +self+ with all \xNN notation replace by \uNNNN 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;. -- cgit v1.2.1