1
Fork 0

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:
LingMan 2021-05-11 01:17:08 +02:00 committed by GitHub
parent 6fd7a6dc0f
commit 41779f60ec
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