summaryrefslogtreecommitdiff
path: root/string.c
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.c
parent473ee328c5be01ac6bb29659afcbe3361664bf68 (diff)
downloadruby-adcfd6969070c3c51b35221d183728bbde8b8539.tar.gz
[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.
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index 83d90ff3a9..84af905deb 100644
--- a/string.c
+++ b/string.c
@@ -7998,7 +7998,7 @@ rb_str_tr_bang(VALUE str, VALUE src, VALUE repl)
*
* - Each occurrence of the first character specified by +selector+
* is translated to the first character in +replacements+.
- * - Each occurrence of the second character specified by selector+
+ * - Each occurrence of the second character specified by +selector+
* is translated to the second character in +replacements+.
* - And so on.
*