always show display name of the property if the doc is empty

This commit is contained in:
Dmitry Stepanov
2026-03-06 00:12:55 +03:00
parent c22029b6da
commit b013ec341c
+1 -1
View File
@@ -1101,7 +1101,7 @@ impl InspectorContext {
}
let description = if info.doc.is_empty() {
info.doc.to_string()
info.display_name.to_string()
} else {
format!("{}\n\n{}", info.display_name, info.doc)
};