aboutsummaryrefslogtreecommitdiffstats
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-20 09:19:39 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-20 09:32:42 +0900
commitdb166290088fb7d39d01f68b9860253893d4f1a7 (patch)
tree68c1b2c3e7ff00ed5cd6a214e6644a28dca22261 /vm_insnhelper.c
parent2898367b3a1de00ca78067cc17dd4d1f8df37778 (diff)
downloadruby-db166290088fb7d39d01f68b9860253893d4f1a7.tar.gz
Fixed misspellings
Fixed misspellings reported at [Bug #16437], only in ruby and rubyspec.
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index e35000e758..2ac006a605 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -165,7 +165,7 @@ vm_check_frame_detail(VALUE type, int req_block, int req_me, int req_cref, VALUE
if ((type & VM_FRAME_MAGIC_MASK) == VM_FRAME_MAGIC_DUMMY) {
VM_ASSERT(iseq == NULL ||
- RUBY_VM_NORMAL_ISEQ_P(iseq) /* argument error. it shold be fixed */);
+ RUBY_VM_NORMAL_ISEQ_P(iseq) /* argument error. it should be fixed */);
}
else {
VM_ASSERT(is_cframe == !RUBY_VM_NORMAL_ISEQ_P(iseq));
@@ -226,7 +226,7 @@ vm_check_canary(const rb_execution_context_t *ec, VALUE *sp)
return;
}
else {
- /* we are going to call metods below; squash the canary to
+ /* we are going to call methods below; squash the canary to
* prevent infinite loop. */
sp[0] = Qundef;
}
@@ -1334,7 +1334,7 @@ vm_throw_start(const rb_execution_context_t *ec, rb_control_frame_t *const reg_c
/* do nothing */
}
else {
- rb_bug("isns(throw): unsupport throw type");
+ rb_bug("isns(throw): unsupported throw type");
}
ec->tag->state = state;
@@ -1536,7 +1536,7 @@ rb_vm_search_method_slowpath(struct rb_call_data *cd, VALUE klass)
* - It scans the array from left to right, looking for the expected class
* serial. If it finds that at `cc->class_serial[0]` (this branch
* probability is 98% according to @shyouhei's experiment), just returns
- * true. If it reaches the end of the array without finding anytihng,
+ * true. If it reaches the end of the array without finding anything,
* returns false. This is done in the #1 loop below.
*
* - What needs to be complicated is when the class serial is found at either