rustc_errors

Function a_or_an

Source
pub fn a_or_an(s: &str) -> &'static str
Expand description

Grammatical tool for displaying messages to end users in a nice form.

Returns β€œan” if the given string starts with a vowel, and β€œa” otherwise.