Project

General

Profile

Actions

Bug #20754

closed

[doc] `Hash::new` is missing from rdoc for 3.4

Added by Earlopain (Earlopain _) 2 months ago. Updated 2 months ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:119251]

Description

I was interested in the capacity argument added in https://github.com/ruby/ruby/pull/10357 but found any reference to it missing from https://docs.ruby-lang.org/en/master/Hash.html

::new just links to docs from BasicObject. Docs for 3.3 contain the proper new method: https://docs.ruby-lang.org/en/3.3/Hash.html#method-c-new

Maybe it has something to do with it moving into ruby code? Not sure. I haven't checked other classes that moved into ruby.

Actions #1

Updated by byroot (Jean Boussier) 2 months ago

  • Backport changed from 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN to 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONTNEED
Actions #2

Updated by nobu (Nobuyoshi Nakada) 2 months ago

  • Status changed from Open to Closed

Applied in changeset git|f82618578666ee720bdc0ec8e4aeace541f2d953.


[Bug #20754] Document in hash.rb

Updated by Earlopain (Earlopain _) 2 months ago

What a simple fix, now I know myself. Thank you!

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0