Project

General

Profile

Actions

Bug #10896

closed

First example in the documentation for URI::join shows incorrect result

Added by glenab (Glen Aultman-Bettridge) almost 10 years ago. Updated over 9 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:68270]

Description

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.

Actions #2

Updated by gogotanaka (Kazuki Tanaka) over 9 years ago

  • Status changed from Open to Closed

It was solved with 49728. thanks.

Actions

Also available in: Atom PDF

Like0
Like0Like0