Rollup merge of #85162 - LingMan:patch-1, r=varkor

Fix typo in variable name

All other sibling functions call this variable "slot", so "slote" was most likely a typo.
This commit is contained in:
Yuki Okushi 2021-05-12 07:18:03 +09:00 committed by GitHub
commit 9ad5c4d8ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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