mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Fix spelling
This commit is contained in:
parent
65494d3cc6
commit
3fc1495c30
Notes:
git
2024-10-08 22:15:02 +00:00
7 changed files with 15 additions and 15 deletions
2
range.c
2
range.c
|
@ -493,7 +493,7 @@ range_step(int argc, VALUE *argv, VALUE range)
|
|||
const VALUE e_num_p = rb_obj_is_kind_of(e, rb_cNumeric);
|
||||
// For backward compatibility reasons (conforming to behavior before 3.4), String/Symbol
|
||||
// supports both old behavior ('a'..).step(1) and new behavior ('a'..).step('a')
|
||||
// Hence the additional conversion/addional checks.
|
||||
// Hence the additional conversion/additional checks.
|
||||
const VALUE str_b = rb_check_string_type(b);
|
||||
const VALUE sym_b = SYMBOL_P(b) ? rb_sym2str(b) : Qnil;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue