Skip to content

Commit fec9242

Browse files
committed
Fix the mention to removed URI.escape/URI::Escape
This was removed by #9.
1 parent 24cf280 commit fec9242

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/uri/file.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class File < Generic
4747
# :path => '/ruby/src'})
4848
# uri2.to_s # => "file://host.example.com/ruby/src"
4949
#
50-
# uri3 = URI::File.build({:path => URI::escape('/path/my file.txt')})
50+
# uri3 = URI::File.build({:path => URI::RFC2396_PARSER.escape('/path/my file.txt')})
5151
# uri3.to_s # => "file:///path/my%20file.txt"
5252
#
5353
def self.build(args)

lib/uri/generic.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def self.use_registry # :nodoc:
7373
#
7474
# At first, tries to create a new URI::Generic instance using
7575
# URI::Generic::build. But, if exception URI::InvalidComponentError is raised,
76-
# then it does URI::Escape.escape all URI components and tries again.
76+
# then it does URI::RFC2396_PARSER.escape all URI components and tries again.
7777
#
7878
def self.build2(args)
7979
begin

0 commit comments

Comments
 (0)