Skip to content

Commit 49daaa6

Browse files
k0kubunhsbt
authored andcommitted
Fix an example committed to a wrong place [ci skip]
1 parent e61c140 commit 49daaa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/http.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ def HTTP.get_print(uri_or_host, path_or_headers = nil, port = nil)
460460
#
461461
# you can also specify request headers:
462462
#
463-
# Net::HTTP.get_response(URI('http://www.example.com/index.html'), { 'Accept' => 'text/html' })
463+
# Net::HTTP.get(URI('http://www.example.com/index.html'), { 'Accept' => 'text/html' })
464464
#
465465
def HTTP.get(uri_or_host, path_or_headers = nil, port = nil)
466466
get_response(uri_or_host, path_or_headers, port).body

0 commit comments

Comments
 (0)