Skip to content

Commit 41779f6

Browse files
authored
Fix typo in variable name
All other sibling functions call this variable "slot", so "slote" was most likely a typo.
1 parent 6fd7a6d commit 41779f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_session/src/options.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -621,9 +621,9 @@ mod parse {
621621
true
622622
}
623623

624-
crate fn parse_linker_flavor(slote: &mut Option<LinkerFlavor>, v: Option<&str>) -> bool {
624+
crate fn parse_linker_flavor(slot: &mut Option<LinkerFlavor>, v: Option<&str>) -> bool {
625625
match v.and_then(LinkerFlavor::from_str) {
626-
Some(lf) => *slote = Some(lf),
626+
Some(lf) => *slot = Some(lf),
627627
_ => return false,
628628
}
629629
true

0 commit comments

Comments
 (0)