Skip to content

[DOC] Update documentation for RB_SCAN_ARGS_KEYWORDS#16133

Merged
eregon merged 1 commit intoruby:masterfrom
jeremyevans:rb-pass-keywords-doc
Feb 11, 2026
Merged

[DOC] Update documentation for RB_SCAN_ARGS_KEYWORDS#16133
eregon merged 1 commit intoruby:masterfrom
jeremyevans:rb-pass-keywords-doc

Conversation

@jeremyevans
Copy link
Copy Markdown
Contributor

When using RB_SCAN_ARGS_KEYWORDS, the final argument must be a hash. If you are unsure of whether the final argument is a hash, you should use RB_SCAN_ARGS_LAST_HASH_KEYWORDS.

@jeremyevans jeremyevans requested a review from eregon February 10, 2026 15:12
Copy link
Copy Markdown
Member

@eregon eregon left a comment

Choose a reason for hiding this comment

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

Thank you, it's much clearer this way.

Comment on lines 71 to 72
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should this be updated similarly?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes. Let me update the PR for that.

When using RB_SCAN_ARGS_KEYWORDS or RB_PASS_KEYWORDS, the final
argument must be a hash.
@eregon eregon merged commit e7f1746 into ruby:master Feb 11, 2026
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants