Skip to content

Fix some nits in the book docs to avoid codespell exceptions - #7242

Merged
philrz merged 1 commit into
mainfrom
pre-codespell-nits
Aug 25, 2026
Merged

Fix some nits in the book docs to avoid codespell exceptions#7242
philrz merged 1 commit into
mainfrom
pre-codespell-nits

Conversation

@philrz

@philrz philrz commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

I'm close to being able to turn on codespell for the book docs to help us catch typos and misspellings more quickly in the future. That means any words flagged by codespell that we want to leave as is would need to be added to an "exceptions" list. While we're free to do that, here I advocate fixing a couple nits in the current docs so we can avoid a couple of those exceptions.

@philrz philrz self-assigned this Aug 25, 2026
computed first and then they are all written simultaneously. As a result,
a computed value cannot be referenced in another expression. If you need
to re-use a computed result, this can be done by chaining multiple `put` operators.
to reuse a computed result, this can be done by chaining multiple `put` operators.

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.

While both "re-use" and "reuse" are considered acceptable spellings in general, a web search indicates that the former spelling is used ~10-15% of the time in typical writing, so codespell flags it it by default. We currently have 10 instances of "reuse" elsewhere in the repo and this was the only "re-use".

Comment thread book/src/formats/sup.md
{ city: "Berkeley", state: "CA", population: 121643::uint32 }::=city_schema
{ city: "Broad Cove", state: "ME", population: 806::uint32 }::=city_schema
{ city: "Baton Rouge", state: "LA", population: 221599::uint32 }::=city_schema
{ city: "Sioux Falls", state: "SD", population: 192517::uint32 }::=city_schema

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.

Codespell happens to flag "rouge" as a likely misspelling of "rogue". While we don't currently use "rogue" anywhere in the repo, it may come up, so rather than add an exception that could cause us to miss a real typo down the road, since this read as an arbitrary trio of small/medium/large cities, I'm proposing using a different city that happens to match the default codespell dictionary. And since this example appears verbatim in a ztest, I changed it there to match.

@philrz
philrz requested a review from a team August 25, 2026 00:50
@philrz
philrz marked this pull request as ready for review August 25, 2026 00:53
@philrz philrz changed the title Fix some nits in the books to avoid codespell exceptions Fix some nits in the book docs to avoid codespell exceptions Aug 25, 2026
@philrz
philrz merged commit a4133ba into main Aug 25, 2026
4 checks passed
@philrz
philrz deleted the pre-codespell-nits branch August 25, 2026 19:54
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