From 0749e7be45712357b3ed03fec3d670c7dc542eca Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 22 Apr 2017 08:19:33 +0000 Subject: [PATCH] adjust indent git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- hash.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hash.c b/hash.c index 6f983e6ee9..c159bfc647 100644 --- a/hash.c +++ b/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); }