diff options
| author | LingMan <LingMan@users.noreply.github.com> | 2021-05-11 01:17:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-11 01:17:08 +0200 |
| commit | 41779f60ecdc96bddc88cd0d7184fa67e411b894 (patch) | |
| tree | 73e860986aba650f2362ab49e11ac430b81b9067 /compiler/rustc_session/src | |
| parent | 6fd7a6dc0f5c4c8fd51d57c0f4f795d52481f904 (diff) | |
| download | rust-41779f60ecdc96bddc88cd0d7184fa67e411b894.tar.gz rust-41779f60ecdc96bddc88cd0d7184fa67e411b894.zip | |
Fix typo in variable name
All other sibling functions call this variable "slot", so "slote" was most likely a typo.
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/options.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs index 10e195f4f25..ca8bb3af2ba 100644 --- a/compiler/rustc_session/src/options.rs +++ b/compiler/rustc_session/src/options.rs @@ -621,9 +621,9 @@ mod parse { true } - crate fn parse_linker_flavor(slote: &mut Option<LinkerFlavor>, v: Option<&str>) -> bool { + crate fn parse_linker_flavor(slot: &mut Option<LinkerFlavor>, v: Option<&str>) -> bool { match v.and_then(LinkerFlavor::from_str) { - Some(lf) => *slote = Some(lf), + Some(lf) => *slot = Some(lf), _ => return false, } true |
