Skip to content

Commit

Permalink
Rollup merge of #85162 - LingMan:patch-1, r=varkor
Browse files Browse the repository at this point in the history
Fix typo in variable name

All other sibling functions call this variable "slot", so "slote" was most likely a typo.
  • Loading branch information
JohnTitor authored May 11, 2021
2 parents 6ec4f91 + 41779f6 commit 9ad5c4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_session/src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9ad5c4d

Please sign in to comment.