diff options
| author | nagachika <nagachika@ruby-lang.org> | 2023-12-16 10:27:07 +0900 |
|---|---|---|
| committer | nagachika <nagachika@ruby-lang.org> | 2023-12-16 10:48:39 +0900 |
| commit | f48a9bbb16fb369d614208a60a4b81ea024a67d1 (patch) | |
| tree | 99324d58b870269f7c25de4d0123035b595f2d09 /lib | |
| parent | 9e4b0c4c3f2354a30fe144c72400cfd6374ee7a7 (diff) | |
partially merge revision db0a4c8923e0e084c7d757d132a83fc9c8431633:
Prefer to use File.foreach instead of IO.foreach
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/net/http/status.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/http/status.rb b/lib/net/http/status.rb index f39fb64256..9673005871 100644 --- a/lib/net/http/status.rb +++ b/lib/net/http/status.rb @@ -4,7 +4,7 @@ require_relative '../http' if $0 == __FILE__ require 'open-uri' - IO.foreach(__FILE__) do |line| + File.foreach(__FILE__) do |line| puts line break if line.start_with?('end') end |
