diff options
author | BurdetteLamar <[email protected]> | 2025-05-03 12:39:06 -0500 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2025-05-04 17:14:44 -0400 |
commit | 35918df740018a510d0f9434e6eca2a2ad533003 (patch) | |
tree | c2f3cdd0da23280239f612c42ca38808fc2a33d7 /string.c | |
parent | d2de59798c286b37a901791c19991c66f5381f53 (diff) |
[DOC] Tweaks for String#+
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13252
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |