diff --git a/lib/docs/main.js b/lib/docs/main.js index 8932674f8d..e0f9b93ed9 100644 --- a/lib/docs/main.js +++ b/lib/docs/main.js @@ -3539,6 +3539,13 @@ Happy writing! } domSectTests.classList.remove("hidden"); } + + if (container.kind !== typeKinds.Struct || containerNode.fields.length > 0) { + domHdrName.innerHTML = "
" + + zigAnalysis.typeKinds[container.kind] + + ""; + domHdrName.classList.remove("hidden"); + } } function operatorCompare(a, b) {