mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +00:00
Fix two more “a”/“an” typos
This commit is contained in:
parent
0960d4ebe2
commit
35a7fdd2c1
2 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ pub(crate) fn to_camel_case(ident: &str) -> Option<String> {
|
||||||
})
|
})
|
||||||
.fold((String::new(), None), |(acc, prev): (_, Option<String>), next| {
|
.fold((String::new(), None), |(acc, prev): (_, Option<String>), next| {
|
||||||
// separate two components with an underscore if their boundary cannot
|
// separate two components with an underscore if their boundary cannot
|
||||||
// be distinguished using a uppercase/lowercase case distinction
|
// be distinguished using an uppercase/lowercase case distinction
|
||||||
let join = prev
|
let join = prev
|
||||||
.and_then(|prev| {
|
.and_then(|prev| {
|
||||||
let f = next.chars().next()?;
|
let f = next.chars().next()?;
|
||||||
|
|
|
@ -695,7 +695,7 @@ impl SubPatSet {
|
||||||
for i in 0..*alt_count {
|
for i in 0..*alt_count {
|
||||||
let sub_set = subpats.get(&i).unwrap_or(&SubPatSet::Empty);
|
let sub_set = subpats.get(&i).unwrap_or(&SubPatSet::Empty);
|
||||||
if sub_set.is_empty() {
|
if sub_set.is_empty() {
|
||||||
// Found a unreachable subpattern.
|
// Found an unreachable subpattern.
|
||||||
unreachable_pats.push(expanded[i]);
|
unreachable_pats.push(expanded[i]);
|
||||||
} else {
|
} else {
|
||||||
fill_subpats(sub_set, unreachable_pats, cx);
|
fill_subpats(sub_set, unreachable_pats, cx);
|
||||||
|
|
Loading…
Reference in a new issue