Skip to content

Commit 72e7d6b

Browse files
committed
chore(docs): replace reference to the obsolete URI.escape with URI::RFC2396_PARSER.escape
1 parent 0a9bf78 commit 72e7d6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/uri/common.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def self.split(uri)
205205
# URI.parse('http://john.doe@www.example.com:123/forum/questions/?tag=networking&order=newest#top')
206206
# # => #<URI::HTTP http://john.doe@www.example.com:123/forum/questions/?tag=networking&order=newest#top>
207207
#
208-
# It's recommended to first ::escape string +uri+
208+
# It's recommended to first URI::RFC2396_PARSER.escape string +uri+
209209
# if it may contain invalid URI characters.
210210
#
211211
def self.parse(uri)

0 commit comments

Comments
 (0)