mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-28 22:13:39 +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()
|
.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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue