diff options
Diffstat (limited to 'ext/pty')
-rw-r--r-- | ext/pty/lib/expect.rb | 2 |
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 |