[前][次][番号順一覧][スレッド一覧]

ruby-changes:36535

From: kazu <ko1@a...>
Date: Thu, 27 Nov 2014 22:59:10 +0900 (JST)
Subject: [ruby-changes:36535] kazu:r48617 (trunk): fix typos

kazu	2014-11-27 22:59:01 +0900 (Thu, 27 Nov 2014)

  New Revision: 48617

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48617

  Log:
    fix typos

  Modified files:
    trunk/ChangeLog
    trunk/vm_args.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 48616)
+++ ChangeLog	(revision 48617)
@@ -38,7 +38,7 @@ Thu Nov 27 19:04:50 2014  Koichi Sasada https://github.com/ruby/ruby/blob/trunk/ChangeLog#L38
 
 	* 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.
 
Index: vm_args.c
===================================================================
--- vm_args.c	(revision 48616)
+++ vm_args.c	(revision 48617)
@@ -10,7 +10,7 @@ https://github.com/ruby/ruby/blob/trunk/vm_args.c#L10
 
 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 pa https://github.com/ruby/ruby/blob/trunk/vm_args.c#L404
 	}
     }
 
-    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 pa https://github.com/ruby/ruby/blob/trunk/vm_args.c#L445
     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, co https://github.com/ruby/ruby/blob/trunk/vm_args.c#L691
 }
 
 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));
 }

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]