Skip to content

Commit 340e048

Browse files
committed
Prefer to use File.foreach instead of IO.foreach
1 parent 868fe80 commit 340e048

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/http/status.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
if $0 == __FILE__
66
require 'open-uri'
7-
IO.foreach(__FILE__) do |line|
7+
File.foreach(__FILE__) do |line|
88
puts line
99
break if line.start_with?('end')
1010
end

0 commit comments

Comments
 (0)