summaryrefslogtreecommitdiffstats
path: root/enumerator.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-21 06:18:25 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-21 06:18:25 +0000
commit333b2d36b074efdef3dc49a7bc22144e85385f41 (patch)
tree82ee319f66c5fc428bb2aeb754dd4deb3fe98fa8 /enumerator.c
parentda8cd2a6241b59c48fafcd632cd51ec6053bcf83 (diff)
downloadruby-333b2d36b074efdef3dc49a7bc22144e85385f41.tar.gz
ruby-333b2d36b074efdef3dc49a7bc22144e85385f41.tar.xz
ruby-333b2d36b074efdef3dc49a7bc22144e85385f41.zip
* enumerator.c (enumerator_init_copy): typo fixed.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enumerator.c')
-rw-r--r--enumerator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enumerator.c b/enumerator.c
index 729d7c04c..2217ed648 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -288,7 +288,7 @@ enumerator_init_copy(VALUE obj, VALUE orig)
struct enumerator *ptr0, *ptr1;
ptr0 = enumerator_ptr(orig);
- if (ptr1->fib) {
+ if (ptr0->fib) {
/* Fibers cannot be copied */
rb_raise(rb_eTypeError, "can't copy execution context");
}