Skip to content

Commit 35918df

Browse files
BurdetteLamarpeterzhu2118
authored andcommitted
[DOC] Tweaks for String#+
1 parent d2de597 commit 35918df

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

string.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2772,12 +2772,13 @@ rb_str_empty(VALUE str)
27722772

27732773
/*
27742774
* call-seq:
2775-
* string + other_string -> new_string
2775+
* self + other_string -> new_string
27762776
*
2777-
* Returns a new +String+ containing +other_string+ concatenated to +self+:
2777+
* Returns a new string containing +other_string+ concatenated to +self+:
27782778
*
2779-
* "Hello from " + self.to_s # => "Hello from main"
2779+
* 'Hello from ' + self.to_s # => "Hello from main"
27802780
*
2781+
* Related: see {Methods for Converting to New String}[rdoc-ref:String@Methods+for+Converting+to+New+String].
27812782
*/
27822783

27832784
VALUE

0 commit comments

Comments
 (0)