mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Tweaks for String#+
This commit is contained in:
parent
d2de59798c
commit
35918df740
Notes:
git
2025-05-05 07:20:54 +00:00
1 changed files with 4 additions and 3 deletions
7
string.c
7
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue