aboutsummaryrefslogtreecommitdiffstats
path: root/encoding.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-02 06:48:51 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-02 06:48:51 +0000
commit5d441f06f9a142a8824c3da2cf93058748351391 (patch)
tree66ce94dd16e4b788845e53f05dde1d08c1fa1042 /encoding.c
parentf738290e5002d4d94782f1381c62824ac75af20d (diff)
downloadruby-5d441f06f9a142a8824c3da2cf93058748351391.tar.gz
encoding.c: use rb_check_arity
* encoding.c (enc_dump): use rb_check_arity to just check number of arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'encoding.c')
-rw-r--r--encoding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/encoding.c b/encoding.c
index 4d044d1cba..5b9f2a0331 100644
--- a/encoding.c
+++ b/encoding.c
@@ -1268,7 +1268,7 @@ enc_compatible_p(VALUE klass, VALUE str1, VALUE str2)
static VALUE
enc_dump(int argc, VALUE *argv, VALUE self)
{
- rb_scan_args(argc, argv, "01", 0);
+ rb_check_arity(argc, 0, 1);
return enc_name(self);
}