1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

adjust indent

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-04-22 08:19:33 +00:00
parent 8baadf66d4
commit 0749e7be45

6
hash.c
View file

@ -714,12 +714,12 @@ rb_hash_new_from_object(VALUE klass, VALUE obj)
#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);
}