Skip to content

Conversation

@BurdetteLamar
Copy link
Member

No description provided.

@BurdetteLamar BurdetteLamar added the Documentation Improvements to documentation. label Feb 10, 2025
/*
* call-seq:
* hash.assoc(key) -> new_array or nil
* assoc(key) -> entry or nil
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other call-seq seems to standardize on having hash. prepended.

Suggested change
* assoc(key) -> entry or nil
* hash.assoc(key) -> entry or nil

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other call-seq seems to standardize on having hash. prepended.

Doc guide says not: https://docs.ruby-lang.org/en/master/contributing/documentation_guide_md.html#label-Calling+Sequence+-28for+methods+written+in+C-29.

Will change the others as we go.

@peterzhu2118 peterzhu2118 merged commit 7fd589c into ruby:master Feb 10, 2025
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Improvements to documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants