mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									493d105779
								
							
						
					
					
						commit
						7c3612542a
					
				
					 2 changed files with 5 additions and 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));
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue