Skip to content

Commit b83f03d

Browse files
hsbtkou
authored andcommitted
Prefer to use File.foreach instead of IO.foreach
1 parent 8168233 commit b83f03d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/fiddle/win32/libffi-config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
end
2424
end
2525

26-
IO.foreach("#{srcdir}/configure.ac") do |line|
26+
File.foreach("#{srcdir}/configure.ac") do |line|
2727
if /^AC_INIT\((.*)\)/ =~ line
2828
version = $1.split(/,\s*/)[1]
2929
version.gsub!(/\A\[|\]\z/, '')

0 commit comments

Comments
 (0)