on master help sign in
Fix typo in syntax.rs (#7114)

seperator -> separator

commit349e2b5f0e02a29069b58a9e2e176e1620d9a816 authorIkko Eltociear Ashimine <eltociear@gmail.com> dateFri 26 May 2023, 17:45 (3 years ago) parenta2e11af
1 file changed+2−2
helix-core/src/syntax.rs+2−2
helix-core/src/syntax.rs+2−2
@@ -198,8 +198,8 @@ impl<'de> Deserialize<'de> for FileType {
198198 Some((key, suffix)) if key == "suffix" => Ok(FileType::Suffix({
199199 // FIXME: use `suffix.replace('/', std::path::MAIN_SEPARATOR_STR)`
200200 // if MSRV is updated to 1.68
201− let mut seperator = [0; 1];
202− suffix.replace('/', std::path::MAIN_SEPARATOR.encode_utf8(&mut seperator))
201+ let mut separator = [0; 1];
202+ suffix.replace('/', std::path::MAIN_SEPARATOR.encode_utf8(&mut separator))
203203 })),
204204 Some((key, _value)) => Err(serde::de::Error::custom(format!(
205205 "unknown key in `file-types` list: {}",