From: hanmac@... Date: 2019-03-11T09:32:49+00:00 Subject: [ruby-core:91770] [Ruby trunk Misc#15654] Documentation for Complex is wrong or misleading Issue #15654 has been updated by Hanmac (Hans Mackowiak). sawa (Tsuyoshi Sawada) wrote: > Actually, currently, there is no literal for complex numbers whose real part is non-zero. I think we need a literal to cover such cases. If something along nobu's suggestion works, that would be preferable. it wasn't a suggestion from him, i just wanted to ping him so he can see the message ---------------------------------------- Misc #15654: Documentation for Complex is wrong or misleading https://bugs.ruby-lang.org/issues/15654#change-77046 * Author: sawa (Tsuyoshi Sawada) * Status: Open * Priority: Normal * Assignee: ---------------------------------------- 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. -- https://bugs.ruby-lang.org/ Unsubscribe: