rust-lang / book

The Rust Programming Language
https://doc.rust-lang.org/book/
Other
15.23k stars 3.43k forks source link

Adaptor/Adapter Inconsistency #3824

Closed SpectralPixel closed 1 month ago

SpectralPixel commented 10 months ago

URL to the section(s) of the book with this problem: The only appearance of this problem is in https://doc.rust-lang.org/book/ch13-02-iterators.html#using-closures-that-capture-their-environment, twice in the first paragraph of this section.

Description of the problem: -> Throughout the page 13.2. Processing a Series of Items with Iterators the U.K. spelling "adaptor" is much more prominent than the U.S. spelling, which is "adapter". The U.S. spelling only appears twice at the beginning of the "Using Closures that Capture Their Environment".

Suggested fix: Change those two instances from "adapter" to "adaptor".

carols10cents commented 10 months ago

The main problem I have with this is the standard library docs use "adapter" -- https://doc.rust-lang.org/std/iter/index.html#adapters

carols10cents commented 10 months ago

See https://github.com/rust-lang/rust/pull/87629

SpectralPixel commented 10 months ago

I see. In that case it might make more sense to replace all instances of "adaptor" (U.K.) with "adapter" (U.S.). This is a much bigger issue than I originally thought, though it shouldn't be difficult to patch up.

chriskrycho commented 7 months ago

@carols10cents it looks like this got un-blocked upstream back in 2021, so should we go ahead with flipping it for the 2024 edition?