]> git.lizzy.rs Git - rust.git/commitdiff
Fix typo in variable name
authorLingMan <LingMan@users.noreply.github.com>
Mon, 10 May 2021 23:17:08 +0000 (01:17 +0200)
committerGitHub <noreply@github.com>
Mon, 10 May 2021 23:17:08 +0000 (01:17 +0200)
All other sibling functions call this variable "slot", so "slote" was most likely a typo.

compiler/rustc_session/src/options.rs

index 10e195f4f2548e1e197edea4372e8f5491186ada..ca8bb3af2ba69c4f789ffe9228aa0fd0d74d0a32 100644 (file)
@@ -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