summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorBurdetteLamar <[email protected]>2025-05-03 12:39:06 -0500
committerPeter Zhu <[email protected]>2025-05-04 17:14:44 -0400
commit35918df740018a510d0f9434e6eca2a2ad533003 (patch)
treec2f3cdd0da23280239f612c42ca38808fc2a33d7 /string.c
parentd2de59798c286b37a901791c19991c66f5381f53 (diff)
[DOC] Tweaks for String#+
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13252
Diffstat (limited to 'string.c')
-rw-r--r--string.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/string.c b/string.c
index d045a2cc2d..094ad88380 100644
--- a/string.c
+++ b/string.c
@@ -2772,12 +2772,13 @@ rb_str_empty(VALUE str)
/*
* call-seq:
- * string + other_string -> new_string
+ * self + other_string -> new_string
*
- * Returns a new +String+ containing +other_string+ concatenated to +self+:
+ * Returns a new string containing +other_string+ concatenated to +self+:
*
- * "Hello from " + self.to_s # => "Hello from main"
+ * 'Hello from ' + self.to_s # => "Hello from main"
*
+ * Related: see {Methods for Converting to New String}[rdoc-ref:String@Methods+for+Converting+to+New+String].
*/
VALUE