mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Fix typo
This commit is contained in:
parent
68b17986c7
commit
978cc93649
2 changed files with 2 additions and 1 deletions
|
@ -458,6 +458,7 @@ mod test {
|
|||
&opts,
|
||||
expect![["test and test2 are enabled"]],
|
||||
);
|
||||
check_why_inactive("#![cfg(all(a, b))]", &opts, expect![["a and b are disabled"]]);
|
||||
check_why_inactive(
|
||||
"#![cfg(all(not(test), a))]",
|
||||
&opts,
|
||||
|
|
|
@ -137,7 +137,7 @@ impl fmt::Display for InactiveReason {
|
|||
for (i, atom) in self.disabled.iter().enumerate() {
|
||||
let sep = match i {
|
||||
0 => "",
|
||||
_ if i == self.enabled.len() - 1 => " and ",
|
||||
_ if i == self.disabled.len() - 1 => " and ",
|
||||
_ => ", ",
|
||||
};
|
||||
f.write_str(sep)?;
|
||||
|
|
Loading…
Reference in a new issue