commit ec8d29ff257a2285665e0559aa53a8cfcb251756 (tree)
parent 2809b01b2f3fcecc4eeec7c1ee44f65ea0b80abb
Author: Vallahor <vallahor91@gmail.com>
Date: Sat, 28 May 2022 14:30:27 -0300
fix: anyopaque_type. it was showing *[1]anyopaque now *anyopaque
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/docs/main.js b/lib/docs/main.js
@@ -1182,9 +1182,6 @@ var zigAnalysis;
default: throw "TODO";
case typeKinds.ComptimeExpr:
{
- // trying to match the std lib types
- // the *[1]anyopaque behavior it's happening
- // because of the known issue with arrays and pointers
return "anyopaque";
}
case typeKinds.Array:
diff --git a/src/Autodoc.zig b/src/Autodoc.zig
@@ -143,6 +143,9 @@ pub fn generateZirData(self: *Autodoc) !void {
.ComptimeFloat = .{ .name = tmpbuf.toOwnedSlice() },
},
+ .anyopaque_type => .{
+ .ComptimeExpr = .{ .name = tmpbuf.toOwnedSlice() },
+ },
.bool_type => .{
.Bool = .{ .name = tmpbuf.toOwnedSlice() },
},