mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-28 05:53:45 +00:00
Fix typos
This commit is contained in:
parent
49806f9ab9
commit
82a8e2a357
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue