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:
parent
8baadf66d4
commit
0749e7be45
1 changed files with 3 additions and 3 deletions
6
hash.c
6
hash.c
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue