on master help sign in
Fix typo in syntax.rs (#7114)
349e2b5Ikko Eltociear Ashimine
helix-core/src/syntax.rs+2−2
@@ -198,8 +198,8 @@ impl<'de> Deserialize<'de> for FileType {
198 Some((key, suffix)) if key == "suffix" => Ok(FileType::Suffix({
198 Some((key, suffix)) if key == "suffix" => Ok(FileType::Suffix({
199 // FIXME: use `suffix.replace('/', std::path::MAIN_SEPARATOR_STR)`
199 // FIXME: use `suffix.replace('/', std::path::MAIN_SEPARATOR_STR)`
200 // if MSRV is updated to 1.68
200 // if MSRV is updated to 1.68
201− let mut seperator = [0; 1];
201+ let mut separator = [0; 1];
202− suffix.replace('/', std::path::MAIN_SEPARATOR.encode_utf8(&mut seperator))
202+ suffix.replace('/', std::path::MAIN_SEPARATOR.encode_utf8(&mut separator))
203 })),
203 })),
204 Some((key, _value)) => Err(serde::de::Error::custom(format!(
204 Some((key, _value)) => Err(serde::de::Error::custom(format!(
205 "unknown key in `file-types` list: {}",
205 "unknown key in `file-types` list: {}",