mirror of
https://github.com/ziglang/zig.git
synced 2025-12-29 01:23:17 +00:00
Merge pull request #16087 from der-teufel-programming/master
autodoc: Fix rendering of function arguments named `_`
This commit is contained in:
commit
c17a8df2fa
@ -2375,6 +2375,9 @@ const NAV_MODES = {
|
||||
if (paramName != null) {
|
||||
// skip if it matches the type name
|
||||
if (!shouldSkipParamName(paramValue, paramName)) {
|
||||
if (paramName === "") {
|
||||
paramName = "_";
|
||||
}
|
||||
payloadHtml += paramName + ": ";
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user