diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-27 13:59:01 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-27 13:59:01 +0000 |
commit | 7c3612542a59932c7c03c6427b1549ae89384c83 (patch) | |
tree | 3741635b150acf027b2a61005126870c853a1037 | |
parent | 493d105779776a9157331de5f2e4c66f214d011f (diff) |
fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | vm_args.c | 8 |
2 files changed, 5 insertions, 5 deletions
@@ -38,7 +38,7 @@ Thu Nov 27 19:04:50 2014 Koichi Sasada <ko1@atdot.net> * vm_args.c (argument_arity_error): rename to argument_arity_error(). - * vm_args.c (arugment_kw_error): added to fix backtrace. + * vm_args.c (argument_kw_error): added to fix backtrace. * test/ruby/test_keyword.rb: add tests. @@ -10,7 +10,7 @@ NORETURN(static void raise_argument_error(rb_thread_t *th, const rb_iseq_t *iseq, const VALUE exc)); NORETURN(static void argument_arity_error(rb_thread_t *th, const rb_iseq_t *iseq, const int miss_argc, const int min_argc, const int max_argc)); -NORETURN(static void arugment_kw_error(rb_thread_t *th, const rb_iseq_t *iseq, const char *error, const VALUE keys)); +NORETURN(static void argument_kw_error(rb_thread_t *th, const rb_iseq_t *iseq, const char *error, const VALUE keys)); VALUE rb_keyword_error_new(const char *error, VALUE keys); /* class.c */ struct args_info { @@ -404,7 +404,7 @@ args_setup_kw_parameters(VALUE* const passed_values, const int passed_keyword_le } } - if (missing) arugment_kw_error(GET_THREAD(), iseq, "missing", missing); + if (missing) argument_kw_error(GET_THREAD(), iseq, "missing", missing); for (di=0; i<key_num; i++, di++) { if (args_setup_kw_parameters_lookup(acceptable_keywords[i], &locals[i], passed_keywords, passed_values, passed_keyword_len)) { @@ -445,7 +445,7 @@ args_setup_kw_parameters(VALUE* const passed_values, const int passed_keyword_le else { if (found != passed_keyword_len) { VALUE keys = make_unused_kw_hash(passed_keywords, passed_keyword_len, passed_values, TRUE); - arugment_kw_error(GET_THREAD(), iseq, "unknown", keys); + argument_kw_error(GET_THREAD(), iseq, "unknown", keys); } } @@ -691,7 +691,7 @@ argument_arity_error(rb_thread_t *th, const rb_iseq_t *iseq, const int miss_argc } static void -arugment_kw_error(rb_thread_t *th, const rb_iseq_t *iseq, const char *error, const VALUE keys) +argument_kw_error(rb_thread_t *th, const rb_iseq_t *iseq, const char *error, const VALUE keys) { raise_argument_error(th, iseq, rb_keyword_error_new(error, keys)); } |