aboutsummaryrefslogtreecommitdiff
path: root/src/server/documentation.odin
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/documentation.odin')
-rw-r--r--src/server/documentation.odin6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/documentation.odin b/src/server/documentation.odin
index 59d813d..17d0204 100644
--- a/src/server/documentation.odin
+++ b/src/server/documentation.odin
@@ -117,7 +117,7 @@ build_documentation :: proc(ast_context: ^AstContext, symbol: ^Symbol, short_sig
return
}
- symbol.doc = construct_symbol_docs(symbol, allocator = ast_context.allocator)
+ symbol.doc = construct_symbol_docs(symbol^, allocator = ast_context.allocator)
}
// Adds signature and docs information for a bit field field
@@ -125,10 +125,10 @@ build_bit_field_field_documentation :: proc(
symbol: ^Symbol, value: SymbolBitFieldValue, index: int, allocator := context.temp_allocator
) {
symbol.signature = get_bit_field_field_signature(value, index, allocator)
- symbol.doc = construct_symbol_docs(symbol)
+ symbol.doc = construct_symbol_docs(symbol^)
}
-construct_symbol_docs :: proc(symbol: ^Symbol, allocator := context.temp_allocator) -> string {
+construct_symbol_docs :: proc(symbol: Symbol, allocator := context.temp_allocator) -> string {
sb := strings.builder_make(allocator = allocator)
if symbol.doc != "" {
strings.write_string(&sb, symbol.doc)