Project

General

Profile

Actions

Bug #12215

closed

URI::HTTP.new example is incorrect

Added by mcdickenson (Matt Dickenson) about 8 years ago. Updated almost 8 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
2.3.0-dev
[ruby-core:74540]

Description

On this page (http://ruby-doc.org/stdlib-2.3.0/libdoc/uri/rdoc/URI/HTTP.html) the example for URI::HTTP.new will result in an error (ArgumentError: wrong number of arguments (given 7, expected 9..11)).

A working example (2.3.0-dev) is: uri = URI::HTTP.new('http', nil, "www.example.com", nil, nil, "/path", nil, "query", 'fragment').

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0