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 ext/strscan/strscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -2220,8 +2220,8 @@ named_captures_iter(const OnigUChar *name,
* call-seq:
* named_captures -> hash
*
* Returns the array of captured match values at indexes (1..)
* if the most recent match attempt succeeded, or nil otherwise;
* Returns a hash of named captures for the most recent regexp match,
* or an empty hash if there are no named captures;
Comment on lines +2223 to +2224
Copy link
Copy Markdown
Contributor Author

@ksss ksss May 26, 2026

Choose a reason for hiding this comment

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

StringScanner#named_captures will never return nil.

* see [Captured Match Values][13]:
*
* ```rb
Expand Down
Loading