summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authorgit <svn-admin@ruby-lang.org>2022-10-10 13:22:15 +0900
committergit <svn-admin@ruby-lang.org>2022-10-10 13:22:15 +0900
commit2dd1a037deff81d0464172c0c1ac061f40ec4bd3 (patch)
treeb61f0abab67a87b62a238911833666bdaacc3662 /re.c
parent0a98dd1cffe09c2c17e60e1a1c75bad7e4337002 (diff)
downloadruby-2dd1a037deff81d0464172c0c1ac061f40ec4bd3.tar.gz
* expand tabs. [ci skip]
Tabs were expanded because the file did not have any tab indentation in unedited lines. Please update your editor config, and use misc/expand_tabs.rb in the pre-commit hook.
Diffstat (limited to 're.c')
-rw-r--r--re.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/re.c b/re.c
index 4d0dcf95cc..f52492245e 100644
--- a/re.c
+++ b/re.c
@@ -2405,7 +2405,7 @@ match_deconstruct_keys(VALUE match, VALUE keys)
VALUE key = RARRAY_AREF(keys, i);
VALUE name;
- Check_Type(key, T_SYMBOL);
+ Check_Type(key, T_SYMBOL);
name = rb_sym2str(key);
@@ -2415,7 +2415,7 @@ match_deconstruct_keys(VALUE match, VALUE keys)
if (num >= 0) {
rb_hash_aset(h, key, rb_reg_nth_match(num, match));
}
- else {
+ else {
return h;
}
}