Fix typos

This commit is contained in:
ChosenName 2024-06-04 21:30:36 -06:00 committed by GitHub
parent 49806f9ab9
commit 82a8e2a357
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2634,13 +2634,13 @@ fn schema(fields: &[SchemaField]) -> serde_json::Value {
.iter() .iter()
.map(|(field, ty, doc, default)| { .map(|(field, ty, doc, default)| {
let name = field.replace('_', "."); let name = field.replace('_', ".");
let catagory = name.find('.').map(|end| { let category = name.find('.').map(|end| {
String::from(&name[..end]) String::from(&name[..end])
}).unwrap_or("general".into()); }).unwrap_or("general".into());
let name = format!("rust-analyzer.{name}"); let name = format!("rust-analyzer.{name}");
let props = field_props(field, ty, doc, default); let props = field_props(field, ty, doc, default);
serde_json::json!({ serde_json::json!({
"title": catagory, "title": category,
"properties": { "properties": {
name: props name: props
} }