summaryrefslogtreecommitdiff
path: root/lib/net
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-01 17:31:20 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-01 17:31:20 +0000
commitec8f4038c92004ba684851ac6196c39207fbb316 (patch)
treefbb8eb44f48ff79bf6df7727447f26b7239eba92 /lib/net
parent95bff6e828b39a8e2929210e7e2aa435b68de65c (diff)
Fix positional wording in lib/net/http.rb to match revised order
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/http.rb20
1 files changed, 9 insertions, 11 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index bdb832e285..55b731d058 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -44,7 +44,13 @@ module Net #:nodoc:
#
# == Simple Examples
#
- # The Net::HTTP methods in the following examples do not persist
+ # All examples assume you have loaded Net::HTTP with:
+ #
+ # require 'net/http'
+ #
+ # This will also require 'uri' so you don't need to require it separately.
+ #
+ # The Net::HTTP methods in the following section do not persist
# connections. They are not recommended if you are performing many HTTP
# requests.
#
@@ -80,17 +86,9 @@ module Net #:nodoc:
#
# == How to use Net::HTTP
#
- # Net::HTTP provides several convenience methods for performing a GET on a
- # web server which are described below.
- #
- # All examples assume you have loaded Net::HTTP with:
- #
- # require 'net/http'
- #
- # This will also require 'uri' so you don't need to require it separately.
- #
# The following example code can be used as the basis of a HTTP user-agent
- # which will perform a variety of request types.
+ # which can perform a variety of request types using persistent
+ # connections.
#
# uri = URI('http://example.com/some_path?query=string')
#