Skip to content

docs: remove stray ? in c.req.raw.cf example - #925

Merged
yusukebe merged 1 commit into
honojs:mainfrom
mayur-dhavan:patch-2
Oct 26, 2026
Merged

yusukebe merged 1 commit into
honojs:mainfrom
mayur-dhavan:patch-2

Conversation

@mayur-dhavan

Copy link
Copy Markdown
Contributor

The raw example in the Request API docs has a stray trailing ?: const metadata = c.req.raw.cf?.hostMetadata?. As written this is invalid JavaScript, and it shows up on the live page (https://hono.dev/docs/api/request). This removes the extra ?.

Validation: syntax-only. The fenced snippet parses cleanly after the change (TypeScript parser); not runtime-tested.

Copilot AI balanced review requested due to automatic review settings October 25, 2026 15:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@yusukebe

Copy link
Copy Markdown
Member

@mayur-dhavan Thanks!

@yusukebe
yusukebe merged commit c11e6da into honojs:main Oct 26, 2026
2 checks passed
@mayur-dhavan

Copy link
Copy Markdown
Contributor Author

Thank you for the review and the merge!

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.

3 participants