mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Tweaks for String#concat (#13836)
This commit is contained in:
parent
a1acba6d14
commit
51252ef8d7
2 changed files with 13 additions and 13 deletions
14
string.c
14
string.c
|
@ -3789,19 +3789,7 @@ rb_str_concat_literals(size_t num, const VALUE *strary)
|
|||
* call-seq:
|
||||
* concat(*objects) -> string
|
||||
*
|
||||
* Concatenates each object in +objects+ to +self+ and returns +self+:
|
||||
*
|
||||
* s = 'foo'
|
||||
* s.concat('bar', 'baz') # => "foobarbaz"
|
||||
* s # => "foobarbaz"
|
||||
*
|
||||
* For each given object +object+ that is an Integer,
|
||||
* the value is considered a codepoint and converted to a character before concatenation:
|
||||
*
|
||||
* s = 'foo'
|
||||
* s.concat(32, 'bar', 32, 'baz') # => "foo bar baz"
|
||||
*
|
||||
* Related: String#<<, which takes a single argument.
|
||||
* :include: doc/string/concat.rdoc
|
||||
*/
|
||||
static VALUE
|
||||
rb_str_concat_multi(int argc, VALUE *argv, VALUE str)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue