-
Notifications
You must be signed in to change notification settings - Fork 27
Closed
Description
ruby/rdoc の不備なのか、 docs.ruby-lang.org の不備なのかわからなかったので、とりあえずこちらに報告します。
問題点
class Symbol のドキュメントが別の class のものになっており、正しいドキュメントが表示されない。
https://docs.ruby-lang.org/en/2.4.0/Symbol.html → Bignumのドキュメント
https://docs.ruby-lang.org/en/trunk/Symbol.html → Integerのドキュメント
他の症状
検索時に2つ候補が出てくる。どちらをクリックしても、間違ったドキュメントの文面が出てくる
原因?
class Symbol のドキュメントは symbol.c
ではなく string.c
に記述されている。
https://github.com/ruby/ruby/blob/5d12e826475b859649f113638066b42f21b7784f/string.c#L9962
他のドキュメントサイト
ruby-docでは正しいドキュメントが表示できている
http://ruby-doc.org/core-2.4.2/Symbol.html
手元の Dash for macOS では正しいドキュメントが表示できている
Metadata
Metadata
Assignees
Labels
No labels