Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -2845,9 +2845,9 @@ clear_i(VALUE key, VALUE value, VALUE dummy)

/*
* call-seq:
* hash.clear -> self
* clear -> self
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
* clear -> self
* hash.clear -> self

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.

Copy link
Member

Choose a reason for hiding this comment

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

I see, I fixed all of them in Hash and Array in #12728 to make it consistent.

*
* Removes all hash entries; returns +self+.
* Removes all entries from +self+; returns emptied +self+.
*/

VALUE
Expand Down