[#92063] [Ruby trunk Misc#15723] Reconsider numbered parameters — zverok.offline@...
Issue #15723 has been updated by zverok (Victor Shepelev).
3 messages
2019/03/31
[ruby-core:91650] [Ruby trunk Misc#15630] Clarifications on Comparable documentation
From:
shugo@...
Date:
2019-03-01 04:12:44 UTC
List:
ruby-core #91650
Issue #15630 has been reported by shugo (Shugo Maeda). ---------------------------------------- Misc #15630: Clarifications on Comparable documentation https://bugs.ruby-lang.org/issues/15630 * Author: shugo (Shugo Maeda) * Status: Open * Priority: Normal * Assignee: ---------------------------------------- The documentation of `Comparable#>` says: ``` /* * call-seq: * obj > other -> true or false * * Compares two objects based on the receiver's <code><=></code> * method, returning true if it returns 1. */ ``` However, `Comparable#>` returns if and only if `<=>` returns any value greater than 0. It's better to fix the documentation, isn't it? -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>