diff options
author | Yuji Yaginuma <[email protected]> | 2025-01-23 17:44:17 +0900 |
---|---|---|
committer | git <[email protected]> | 2025-02-27 04:30:23 +0000 |
commit | 31bd669f67e19f675f8de8b6cf9df74ea2c60103 (patch) | |
tree | bd33f7d39d8f3aa212ec37ff3da60d8a5d8f45a7 | |
parent | d31c15d81f368614f81e8c32295d0529b66e7334 (diff) |
[ruby/uri] Fix the mention to removed `URI.escape/URI::Escape`
This was removed by #9.
https://github.com/ruby/uri/commit/fec924238f
-rw-r--r-- | lib/uri/file.rb | 2 | ||||
-rw-r--r-- | lib/uri/generic.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/uri/file.rb b/lib/uri/file.rb index 940d361af8..47b5aef067 100644 --- a/lib/uri/file.rb +++ b/lib/uri/file.rb @@ -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) diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb index b574104ba1..07f329e3d1 100644 --- a/lib/uri/generic.rb +++ b/lib/uri/generic.rb @@ -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 |