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

ruby-changes:48590

From: stomar <ko1@a...>
Date: Wed, 8 Nov 2017 05:14:06 +0900 (JST)
Subject: [ruby-changes:48590] stomar:r60710 (trunk): http.rb: improve docs

stomar	2017-11-08 05:13:48 +0900 (Wed, 08 Nov 2017)

  New Revision: 60710

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60710

  Log:
    http.rb: improve docs
    
    * lib/net/http.rb: [DOC] fix typos and grammar

  Modified files:
    trunk/lib/net/http.rb
Index: lib/net/http.rb
===================================================================
--- lib/net/http.rb	(revision 60709)
+++ lib/net/http.rb	(revision 60710)
@@ -627,10 +627,10 @@ module Net   #:nodoc: https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L627
     # detection from the environment.  To disable proxy detection set +p_addr+
     # to nil.
     #
-    # If you are connecting to a custom proxy, +p_addr+ the DNS name or IP
-    # address of the proxy host, +p_port+ the port to use to access the proxy,
-    # +p_user+ and +p_pass+ the username and password if authorization is
-    # required to use the proxy, and p_no_proxy spcifies hosts which doesn't
+    # If you are connecting to a custom proxy, +p_addr+ specifies the DNS name
+    # or IP address of the proxy host, +p_port+ the port to use to access the
+    # proxy, +p_user+ and +p_pass+ the username and password if authorization
+    # is required to use the proxy, and p_no_proxy hosts which do not
     # use the proxy.
     #
     def HTTP.new(address, port = nil, p_addr = :ENV, p_port = nil, p_user = nil, p_pass = nil, p_no_proxy = nil)
@@ -746,7 +746,7 @@ module Net   #:nodoc: https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L746
     # Net::ReadTimeout, IOError, EOFError, Errno::ECONNRESET,
     # Errno::ECONNABORTED, Errno::EPIPE, OpenSSL::SSL::SSLError,
     # Timeout::Error.
-    # Should be non-negative integer number. Zero means no retries.
+    # Should be a non-negative integer number. Zero means no retries.
     # The default value is 1.
     def max_retries=(retries)
       retries = retries.to_int

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

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