Skip to content

Commit

Permalink
URI#merge also accepts uri as arg
Browse files Browse the repository at this point in the history
  • Loading branch information
HoneyryderChuck committed Feb 2, 2022
1 parent e12b135 commit 203e7ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/uri/0/generic.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ module URI
# uri.merge!("/main.rbx?page=1")
# uri.to_s # => "http://my.example.com/main.rbx?page=1"
#
def merge!: (string oth) -> String
def merge!: (URI::Generic | string oth) -> String

# <!--
# rdoc-file=lib/uri/generic.rb
Expand All @@ -904,7 +904,7 @@ module URI
# uri.merge("/main.rbx?page=1")
# # => "http://my.example.com/main.rbx?page=1"
#
def merge: (string oth) -> URI::Generic
def merge: (URI::Generic | string oth) -> URI::Generic

# :stopdoc:
def route_from_path: (String src, String dst) -> String
Expand Down

0 comments on commit 203e7ec

Please sign in to comment.