fix typo in note about multiple inaccessible type aliases
Mainly intended as a small typo fix ("aliass" -> "aliases") for the case where a type cannot be found in scope, and there are multiple inaccessible type aliases that match the missing type. In general this change would use the correct plural form in this scenario for words that end with 's'.
This commit is contained in:
parent
7b46aa594c
commit
503c669927
3 changed files with 47 additions and 1 deletions
|
@ -2589,8 +2589,10 @@ fn show_candidates(
|
|||
} else {
|
||||
"item".to_string()
|
||||
};
|
||||
let plural_descr =
|
||||
if descr.ends_with("s") { format!("{}es", descr) } else { format!("{}s", descr) };
|
||||
|
||||
let mut msg = format!("{}these {}s exist but are inaccessible", prefix, descr);
|
||||
let mut msg = format!("{}these {} exist but are inaccessible", prefix, plural_descr);
|
||||
let mut has_colon = false;
|
||||
|
||||
let mut spans = Vec::new();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue