Skip to content

Commit adcfd69

Browse files
[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.
1 parent 473ee32 commit adcfd69

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

doc/string/start_with_p.rdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Returns whether +self+ starts with any of the given +string_or_regexp+.
22

3-
Matches patterns against the beginning of+self+.
3+
Matches patterns against the beginning of +self+.
44
For each given +string_or_regexp+, the pattern is:
55

66
- +string_or_regexp+ itself, if it is a Regexp.

string.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7998,7 +7998,7 @@ rb_str_tr_bang(VALUE str, VALUE src, VALUE repl)
79987998
*
79997999
* - Each occurrence of the first character specified by +selector+
80008000
* is translated to the first character in +replacements+.
8001-
* - Each occurrence of the second character specified by selector+
8001+
* - Each occurrence of the second character specified by +selector+
80028002
* is translated to the second character in +replacements+.
80038003
* - And so on.
80048004
*

string.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
# consisting of any mixture of the following:
144144
#
145145
# - NL (null): <tt>"\x00"</tt>, <tt>"\u0000"</tt>.
146-
# - HT (horizontal tab): <tt>"\x09"</tt>, "<tt>\t"</tt>.
146+
# - HT (horizontal tab): <tt>"\x09"</tt>, <tt>"\t"</tt>.
147147
# - LF (line feed): <tt>"\x0a"</tt>, <tt>"\n"</tt>.
148148
# - VT (vertical tab): <tt>"\x0b"</tt>, <tt>"\v"</tt>.
149149
# - FF (form feed): <tt>"\x0c"</tt>, <tt>"\f"</tt>.
@@ -452,9 +452,9 @@
452452
#
453453
# _Substitution_
454454
#
455-
# - #dump: Returns a copy of +self with all non-printing characters replaced by \xHH notation
455+
# - #dump: Returns a copy of +self+ with all non-printing characters replaced by \xHH notation
456456
# and all special characters escaped.
457-
# - #undump: Returns a copy of +self with all <tt>\xNN</tt> notation replace by <tt>\uNNNN</tt> notation
457+
# - #undump: Returns a copy of +self+ with all <tt>\xNN</tt> notation replace by <tt>\uNNNN</tt> notation
458458
# and all escaped characters unescaped.
459459
# - #sub: Returns a copy of +self+ with the first substring matching a given pattern
460460
# replaced with a given replacement string;.

0 commit comments

Comments
 (0)