rust-lang / book

The Rust Programming Language

Home Page:https://doc.rust-lang.org/book/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adaptor/Adapter Inconsistency

SpectralPixel opened this issue · comments

  • I have searched open and closed issues and pull requests for duplicates, using these search terms:
    • American (desired result: something along the lines of "American/English spelling inconsistency")
    • inconsistency
    • adaptor
    • adapter
  • I have checked the latest main branch to see if this has already been fixed, in this file:

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".

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

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.