From ab74ce2616dcb2e340a082989a2cf42a90fc5fb1 Mon Sep 17 00:00:00 2001 From: Andrew Grimm Date: Sat, 30 Jul 2011 11:23:36 +1000 Subject: [PATCH] Fix code example in URI::Parser documentation. --- lib/uri/common.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/uri/common.rb b/lib/uri/common.rb index f23fe98..e5a4aa9 100644 --- a/lib/uri/common.rb +++ b/lib/uri/common.rb @@ -86,7 +86,7 @@ module URI # # == 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.parse(u.to_s) #=> raises URI::InvalidURIError # -- 1.6.6