aboutsummaryrefslogtreecommitdiff
path: root/src/docs_writer.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-01-17 22:17:07 +0000
committergingerBill <bill@gingerbill.org>2022-01-17 22:17:07 +0000
commitfb01dfe04845a489760956cea4f0019e1464b2e3 (patch)
treeb5ac107898a61ba786b4c8f6bd5bf1f005c518f5 /src/docs_writer.cpp
parentc7a9c8274fc212ec421d46c2c58f36afdc949898 (diff)
Improve docs_writer.cpp
Diffstat (limited to 'src/docs_writer.cpp')
-rw-r--r--src/docs_writer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/docs_writer.cpp b/src/docs_writer.cpp
index 94b43be99..762a2afe1 100644
--- a/src/docs_writer.cpp
+++ b/src/docs_writer.cpp
@@ -513,7 +513,7 @@ OdinDocTypeIndex odin_doc_type(OdinDocWriter *w, Type *type) {
break;
case Type_Generic:
doc_type.kind = OdinDocType_Generic;
- doc_type.name = odin_doc_write_string(w, type->Generic.name);
+ doc_type.name = odin_doc_write_string(w, type->Generic.entity->token.string);
if (type->Generic.specialized) {
doc_type.types = odin_doc_type_as_slice(w, type->Generic.specialized);
}