[ruby/uri] Fix the mention to removed URI.escape/URI::Escape

This was removed by #9.

https://github.com/ruby/uri/commit/fec924238f
This commit is contained in:
Yuji Yaginuma 2025-01-23 17:44:17 +09:00 committed by git
parent d31c15d81f
commit 31bd669f67
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ module URI
# :path => '/ruby/src'})
# uri2.to_s # => "file://host.example.com/ruby/src"
#
# uri3 = URI::File.build({:path => URI::escape('/path/my file.txt')})
# uri3 = URI::File.build({:path => URI::RFC2396_PARSER.escape('/path/my file.txt')})
# uri3.to_s # => "file:///path/my%20file.txt"
#
def self.build(args)

View File

@ -73,7 +73,7 @@ module URI
#
# At first, tries to create a new URI::Generic instance using
# URI::Generic::build. But, if exception URI::InvalidComponentError is raised,
# then it does URI::Escape.escape all URI components and tries again.
# then it does URI::RFC2396_PARSER.escape all URI components and tries again.
#
def self.build2(args)
begin