aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-07 20:13:48 +0000
committerstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-07 20:13:48 +0000
commit289e8441dd8b34b6c451d73f810a58d0d6f1b74d (patch)
tree4720c7df57448d2c8cb30a03a39e3a8968973fc7
parentde56d3e798a2e227cf5ccc43f9bff8ca1357603b (diff)
downloadruby-289e8441dd8b34b6c451d73f810a58d0d6f1b74d.tar.gz
http.rb: improve docs
* lib/net/http.rb: [DOC] fix typos and grammar git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/net/http.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 90f299f705..6aa3839011 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -627,10 +627,10 @@ module Net #:nodoc:
# 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:
# 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