[前][次][番号順一覧][スレッド一覧]

ruby-changes:60363

From: Takashi <ko1@a...>
Date: Wed, 11 Mar 2020 14:37:10 +0900 (JST)
Subject: [ruby-changes:60363] da6948753e (master): Fix an example committed to a wrong place [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=da6948753e

From da6948753e8a48ac9fdc0c2f08856f51ab3d7959 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Tue, 10 Mar 2020 22:36:48 -0700
Subject: Fix an example committed to a wrong place [ci skip]


diff --git a/lib/net/http.rb b/lib/net/http.rb
index aac626e..59b6d90 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -460,7 +460,7 @@ module Net   #:nodoc: https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L460
     #
     # you can also specify request headers:
     #
-    #    Net::HTTP.get_response(URI('http://www.example.com/index.html'), { 'Accept' => 'text/html' })
+    #    Net::HTTP.get(URI('http://www.example.com/index.html'), { 'Accept' => 'text/html' })
     #
     def HTTP.get(uri_or_host, path_or_headers = nil, port = nil)
       get_response(uri_or_host, path_or_headers, port).body
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]