[DOC] Tweaks for String#+

This commit is contained in:
BurdetteLamar 2025-05-03 12:39:06 -05:00 committed by Peter Zhu
parent d2de59798c
commit 35918df740
Notes: git 2025-05-05 07:20:54 +00:00

View File

@ -2772,12 +2772,13 @@ rb_str_empty(VALUE str)
/* /*
* call-seq: * 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 VALUE