ruby-changes:46332
From: nobu <ko1@a...>
Date: Sat, 22 Apr 2017 17:19:39 +0900 (JST)
Subject: [ruby-changes:46332] nobu:r58446 (trunk): adjust indent
nobu 2017-04-22 17:19:33 +0900 (Sat, 22 Apr 2017) New Revision: 58446 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58446 Log: adjust indent Modified files: trunk/hash.c Index: hash.c =================================================================== --- hash.c (revision 58445) +++ hash.c (revision 58446) @@ -714,12 +714,12 @@ rb_hash_new_from_object(VALUE klass, VAL https://github.com/ruby/ruby/blob/trunk/hash.c#L714 #endif } switch (RARRAY_LEN(v)) { - default: + default: rb_raise(rb_eArgError, "invalid number of elements (%ld for 1..2)", RARRAY_LEN(v)); - case 2: + case 2: val = RARRAY_AREF(v, 1); - case 1: + case 1: key = RARRAY_AREF(v, 0); hash_insert_raw(Qfalse, tbl, key, val); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/