diff --git a/ChangeLog b/ChangeLog index 4fc9181b91..b024a06143 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/array.c b/array.c index 7d89285a8d..86cf09e542 100644 --- a/array.c +++ b/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] */