From: "Earlopain (Earlopain _) via ruby-core" Date: 2026-08-16T14:04:45+00:00 Subject: [ruby-core:126415] [Ruby Misc#15654] Documentation for Complex is wrong or misleading Issue #15654 has been updated by Earlopain (Earlopain _). Status changed from Open to Closed The documentation today looks quite a bit different and doesn't have this problem anymore. ---------------------------------------- Misc #15654: Documentation for Complex is wrong or misleading https://bugs.ruby-lang.org/issues/15654#change-118557 * Author: sawa (Tsuyoshi Sawada) * Status: Closed ---------------------------------------- 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/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/