mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-21 11:23:03 +00:00
Fix typo
This commit is contained in:
parent
68b17986c7
commit
978cc93649
@ -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 New Issue
Block a user