Skip to content

Clarify get_cookies() return value in documentation#80

Merged
oalders merged 1 commit into
masterfrom
fix-get-cookies-doc
Jun 27, 2026
Merged

Clarify get_cookies() return value in documentation#80
oalders merged 1 commit into
masterfrom
fix-get-cookies-doc

Conversation

@oalders

@oalders oalders commented Jun 23, 2026

Copy link
Copy Markdown
Member

What

get_cookies() returns a hash reference (not a hash) when called without $cookie_key arguments — it returns the $cookies hashref built in the method body. The POD said "Returns a hash of the cookies", which is inaccurate.

This corrects the wording to "Returns a reference to a hash of the cookies that apply to the given URL" and fixes the subject/verb agreement (appliesapply).

Note

This is a follow-up to #75 (merged). The wording corrected here is not present on the current master, so this PR (re)applies the documentation improvement along with the grammar fix.

🤖 Generated with Claude Code

@oalders oalders force-pushed the fix-get-cookies-doc branch from bdc01da to 5663ba1 Compare June 23, 2026 20:21
get_cookies() returns a hash reference (not a hash) when called without
cookie keys. Correct the POD to say so, and fix subject/verb agreement
("cookies that apply").

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@oalders oalders force-pushed the fix-get-cookies-doc branch from 5663ba1 to 04fd77f Compare June 25, 2026 21:09
@oalders oalders merged commit 135df54 into master Jun 27, 2026
36 checks passed
@oalders oalders deleted the fix-get-cookies-doc branch June 27, 2026 16:04
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.

1 participant