summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-04 02:24:15 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-04 02:24:15 (GMT)
commit4b85e88174eea7a79d9c68210d716dc3e4c4f0eb (patch)
treeef0e8d1db1b3072c40ee0d3c68859fd7511b1e53 /time.c
parentb0ec083a20c7b717492994f1ad7a03a97540f218 (diff)
Prefer rb_check_arity when 0 or 1 arguments
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r--time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/time.c b/time.c
index 21b9fec..f1cb7b6 100644
--- a/time.c
+++ b/time.c
@@ -4959,7 +4959,7 @@ time_dump(int argc, VALUE *argv, VALUE time)
{
VALUE str;
- rb_scan_args(argc, argv, "01", 0);
+ rb_check_arity(argc, 0, 1);
str = time_mdump(time);
return str;