Skip to content

Commit 4bfd68e

Browse files
committed
fix(config): fix typo in ActiveReason
1 parent 70a2345 commit 4bfd68e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ impl Display for ActiveReason {
109109
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> std::result::Result<(), fmt::Error> {
110110
match self {
111111
Self::Default => write!(f, "it's the default toolchain"),
112-
Self::Environment => write!(f, "overriden by environment variable RUSTUP_TOOLCHAIN"),
112+
Self::Environment => write!(f, "overridden by environment variable RUSTUP_TOOLCHAIN"),
113113
Self::CommandLine => write!(f, "overridden by +toolchain on the command line"),
114114
Self::OverrideDB(path) => write!(f, "directory override for '{}'", path.display()),
115115
Self::ToolchainFile(path) => write!(f, "overridden by '{}'", path.display()),

tests/suite/cli_rustup.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ active toolchain
11451145
----------------
11461146
name: nightly-{0}
11471147
compiler: 1.3.0 (hash-nightly-2)
1148-
active because: overriden by environment variable RUSTUP_TOOLCHAIN
1148+
active because: overridden by environment variable RUSTUP_TOOLCHAIN
11491149
installed targets:
11501150
{0}
11511151
"

0 commit comments

Comments
 (0)