diff options
author | Ikko Eltociear Ashimine | 2023-05-26 08:45:15 +0000 |
---|---|---|
committer | GitHub | 2023-05-26 08:45:15 +0000 |
commit | 349e2b5f0e02a29069b58a9e2e176e1620d9a816 (patch) | |
tree | 9b79bb70d28a793c1d17992167bf170225b2ff26 /helix-core | |
parent | a2e11af60864ae54f852d6d2ed77e01b58951cb3 (diff) |
Fix typo in syntax.rs (#7114)
seperator -> separator
Diffstat (limited to 'helix-core')
-rw-r--r-- | helix-core/src/syntax.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs index 3fa7994d..c2dd3310 100644 --- a/helix-core/src/syntax.rs +++ b/helix-core/src/syntax.rs @@ -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: {}", |