summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-08-12 18:41:57 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-08-12 18:41:57 +0000
commitee13ed7e84410683a37834e5674a096a0e82d2ec (patch)
tree142e0244a6b632e350f02c3f628d9b9f5372ebbb /lib
parentc233d6592d6ce0cca9149f09cc87c5799d33382a (diff)
* lib/uri/common.rb: Fix documentation of URI::Parser.new. Patch by
Steve Klabnik. [Ruby 1.9 - Bug #5177] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/uri/common.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/uri/common.rb b/lib/uri/common.rb
index f23fe98d4f..abe127f54c 100644
--- a/lib/uri/common.rb
+++ b/lib/uri/common.rb
@@ -78,15 +78,15 @@ module URI
#
# You can use the following keys:
#
- # * <tt>:ESCAPED</tt> (URI::PATTERN::ESCAPED in default)
- # * <tt>:UNRESERVED</tt> (URI::PATTERN::UNRESERVED in default)
- # * <tt>:DOMLABEL</tt> (URI::PATTERN::DOMLABEL in default)
- # * <tt>:TOPLABEL</tt> (URI::PATTERN::TOPLABEL in default)
- # * <tt>:HOSTNAME</tt> (URI::PATTERN::HOSTNAME in default)
+ # * :ESCAPED (URI::PATTERN::ESCAPED in default)
+ # * :UNRESERVED (URI::PATTERN::UNRESERVED in default)
+ # * :DOMLABEL (URI::PATTERN::DOMLABEL in default)
+ # * :TOPLABEL (URI::PATTERN::TOPLABEL in default)
+ # * :HOSTNAME (URI::PATTERN::HOSTNAME in default)
#
# == Examples
#
- # p = URI::Parser.new(:ESCPAED => "(?:%[a-fA-F0-9]{2}|%u[a-fA-F0-9]{4})"
+ # p = URI::Parser.new(:ESCAPED => "(?:%[a-fA-F0-9]{2}|%u[a-fA-F0-9]{4})"
# u = p.parse("http://example.jp/%uABCD") #=> #<URI::HTTP:0xb78cf4f8 URL:http://example.jp/%uABCD>
# URI.parse(u.to_s) #=> raises URI::InvalidURIError
#