Unnamed repository; edit this file 'description' to name the repository.
Fix typos
| -rw-r--r-- | crates/rust-analyzer/src/config.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs index df8cba0ae3..477e8188b8 100644 --- a/crates/rust-analyzer/src/config.rs +++ b/crates/rust-analyzer/src/config.rs @@ -2634,13 +2634,13 @@ fn schema(fields: &[SchemaField]) -> serde_json::Value { .iter() .map(|(field, ty, doc, default)| { let name = field.replace('_', "."); - let catagory = name.find('.').map(|end| { + let category = name.find('.').map(|end| { String::from(&name[..end]) }).unwrap_or("general".into()); let name = format!("rust-analyzer.{name}"); let props = field_props(field, ty, doc, default); serde_json::json!({ - "title": catagory, + "title": category, "properties": { name: props } |