Skip to content

RwLock Typo #21440

Closed
Closed
@Jojoshua

Description

@Jojoshua

fn new(t: T) -> RwLock

Creates a new instance of an RwLock which is unlocked and read to go.
->
Creates a new instance of a RwLock which is unlocked and ready to go.

Activity

Diggsey

Diggsey commented on Jan 21, 2015

@Diggsey
Contributor

Depends how you pronounce RwLock, (I'm assuming the writer pronounced it "Are-Double-You-Lock")

sfackler

sfackler commented on Jan 21, 2015

@sfackler
Member

I read it as "are double yoo lock" so the current version seems fine.

steveklabnik

steveklabnik commented on Jan 21, 2015

@steveklabnik
Member

Yeah, I do too. Interesting...

tomjakubowski

tomjakubowski commented on Jan 21, 2015

@tomjakubowski
Contributor

RwLock comes from the compound noun "RW lock", composed of the initialism "RW" (for readers-writer) and the noun "lock," which is turned into a struct name per Rust's naming conventions.

Initialisms are pronounced by reading each letter out left-to-right so the use of "a" or "an" is determined by the pronunciation of the first letter. The pronunciation of the letter "R" starts with a vowel sound so "an" is appropriate here.

See http://english.stackexchange.com/a/1017

Jojoshua

Jojoshua commented on Jan 21, 2015

@Jojoshua
Author

The typo was read for ready. The a vs an is debatable.

steveklabnik

steveklabnik commented on Jan 21, 2015

@steveklabnik
Member

@Jojoshua ha! Submitting to fix, good eyes.

added a commit that references this issue on Jan 21, 2015
bbbdd10
added a commit that references this issue on Jan 22, 2015

Rollup merge of rust-lang#21477 - steveklabnik:gh21440, r=alexcrichton

22ed381
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @steveklabnik@Diggsey@tomjakubowski@Gankra@sfackler

      Issue actions

        RwLock Typo · Issue #21440 · rust-lang/rust