Project

General

Profile

Actions

Misc #15654

open

Documentation for Complex is wrong or misleading

Added by sawa (Tsuyoshi Sawada) about 5 years ago. Updated about 5 years ago.

Status:
Open
Assignee:
-
[ruby-core:91766]

Description

The documentation for Complex https://ruby-doc.org/core-2.6/Complex.html says or implies that a complex can be created by literal like 2+1i, but that is actually calling the method + on receiver 2 with argument 1i. The description should be changed to make it clear that 2+ 1i is not a literal but is applying a method.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0