Skip to content

Conversation

noahmoss
Copy link
Contributor

Fixes #405

Simplifies the code in this section to not include the nested scope for calling Reader::headers, which is not needed anymore due to non-lexical lifetimes. Also removes the related explanatory text and fixes a typo in the function name (s/header/headers)

@BurntSushi
Copy link
Owner

Thanks! Can you run ./scripts/copy-examples?

@noahmoss
Copy link
Contributor Author

@BurntSushi done!

@BurntSushi BurntSushi merged commit 5b2da18 into BurntSushi:master Oct 12, 2025
10 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.

[docs] Reading headers section of tutorial is outdated due to non-lexical lifetimes

2 participants