[ruby-core:68270] [Ruby trunk - Bug #10896] [Open] First example in the documentation for URI::join shows incorrect result

From: glenab@...
Date: 2015-02-23 23:09:42 UTC
List: ruby-core #68270
Issue #10896 has been reported by Glen Aultman-Bettridge.

----------------------------------------
Bug #10896: First example in the documentation for URI::join shows incorrect result
https://bugs.ruby-lang.org/issues/10896

* Author: Glen Aultman-Bettridge
* Status: Open
* Priority: Low
* Assignee: 
* ruby -v: 2.2.0
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
The example is 

~~~
p URI.join("http://example.com/","main.rbx")
# => #<URI::HTTP:0x2022ac02 URL:http://localhost/main.rbx>
~~~

but should be

~~~
p URI.join("http://example.com/","main.rbx")
# => #<URI::HTTP:0x2022ac02 URL:http://example.com/main.rbx>
~~~

This seems to have been introduced in the documentation for 1.9.3 and occurs in 2.1.5 and 2.2.0 docs as well.



-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next