aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/ruby/test_enumerator.rb2
-rw-r--r--vm.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_enumerator.rb b/test/ruby/test_enumerator.rb
index 0ee33ca6f1..10ba2f184e 100644
--- a/test/ruby/test_enumerator.rb
+++ b/test/ruby/test_enumerator.rb
@@ -43,7 +43,7 @@ class TestEnumerator < Test::Unit::TestCase
}
end
- def test_nested_itaration
+ def test_nested_iteration
def (o = Object.new).each
yield :ok1
yield [:ok2, :x].each.next
diff --git a/vm.c b/vm.c
index 71d282d579..2cc8c5aaba 100644
--- a/vm.c
+++ b/vm.c
@@ -1216,7 +1216,7 @@ vm_exec(rb_thread_t *th)
vm_loop_start:
result = vm_exec_core(th, initial);
if ((state = th->state) != 0) {
-#ifdef __llvm__ /* LLVM optimization guard for TestEnumerator#test_nested_itaration */
+#ifdef __llvm__ /* LLVM optimization guard for TestEnumerator#test_nested_iteration */
(void)__extension__({rb_thread_t t = *th; t;});
#endif
err = result;