summaryrefslogtreecommitdiff
path: root/ext/pty/lib
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pty/lib')
-rw-r--r--ext/pty/lib/expect.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pty/lib/expect.rb b/ext/pty/lib/expect.rb
index 54c69edadb..5b5619e6b2 100644
--- a/ext/pty/lib/expect.rb
+++ b/ext/pty/lib/expect.rb
@@ -25,7 +25,7 @@ class IO
break
end
end
- if iterator? then
+ if block_given? then
yield result
else
return result