Skip to content

Commit

Permalink
Fix typo in syntax.rs (helix-editor#7114)
Browse files Browse the repository at this point in the history
seperator -> separator
  • Loading branch information
eltociear authored and aotarola committed May 28, 2023
1 parent 13751fa commit 3bf62b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helix-core/src/syntax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ impl<'de> Deserialize<'de> for FileType {
Some((key, suffix)) if key == "suffix" => Ok(FileType::Suffix({
// FIXME: use `suffix.replace('/', std::path::MAIN_SEPARATOR_STR)`
// if MSRV is updated to 1.68
let mut seperator = [0; 1];
suffix.replace('/', std::path::MAIN_SEPARATOR.encode_utf8(&mut seperator))
let mut separator = [0; 1];
suffix.replace('/', std::path::MAIN_SEPARATOR.encode_utf8(&mut separator))
})),
Some((key, _value)) => Err(serde::de::Error::custom(format!(
"unknown key in `file-types` list: {}",
Expand Down

0 comments on commit 3bf62b0

Please sign in to comment.