mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
array.c: [DOC] remove trailing comma [ci skip]
* array.c (rb_ary_push_m): [DOC] Remove trailing comma from Array#push example, as other Array examples doesn't put trailing comma. [Fix GH-1279] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
199e910602
commit
c31d06eeb7
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Mon Feb 29 16:50:20 2016 hanachin <hanachin@gmail.com>
|
||||
|
||||
* array.c (rb_ary_push_m): [DOC] Remove trailing comma from
|
||||
Array#push example, as other Array examples doesn't put trailing
|
||||
comma. [Fix GH-1279]
|
||||
|
||||
Mon Feb 29 16:31:01 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* common.mk, tool/mkconfig.rb: set cross_compiling option from
|
||||
|
|
2
array.c
2
array.c
|
@ -935,7 +935,7 @@ rb_ary_cat(VALUE ary, const VALUE *argv, long len)
|
|||
* a = [ "a", "b", "c" ]
|
||||
* a.push("d", "e", "f")
|
||||
* #=> ["a", "b", "c", "d", "e", "f"]
|
||||
* [1, 2, 3,].push(4).push(5)
|
||||
* [1, 2, 3].push(4).push(5)
|
||||
* #=> [1, 2, 3, 4, 5]
|
||||
*/
|
||||
|
||||
|
|
Loading…
Reference in a new issue