You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity
Diggsey commentedon Jan 21, 2015
Depends how you pronounce RwLock, (I'm assuming the writer pronounced it "Are-Double-You-Lock")
sfackler commentedon Jan 21, 2015
I read it as "are double yoo lock" so the current version seems fine.
steveklabnik commentedon Jan 21, 2015
Yeah, I do too. Interesting...
tomjakubowski commentedon Jan 21, 2015
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 commentedon Jan 21, 2015
The typo was read for ready. The a vs an is debatable.
steveklabnik commentedon Jan 21, 2015
@Jojoshua ha! Submitting to fix, good eyes.
Improve RwLock::new's docs
Rollup merge of rust-lang#21477 - steveklabnik:gh21440, r=alexcrichton