diff --git a/lib/std/zig/Ast/Render.zig b/lib/std/zig/Ast/Render.zig index f2efd5beb988e9a5bd7834413a235c0eafc1447d..e60d2ab74c0ecf8c8c8a8bd1bd1016315db08d95 100644 --- a/lib/std/zig/Ast/Render.zig +++ b/lib/std/zig/Ast/Render.zig @@ -1799,7 +1799,7 @@ fn renderFnProto(r: *Render, fn_proto: Ast.full.FnProto, space: Space) Error!voi break; }, .keyword_noalias, .keyword_comptime => { - try renderToken(r, last_param_token, .space); + try renderToken(r, last_param_token, .maybe_space); last_param_token += 1; }, .identifier => {}, @@ -1850,7 +1850,7 @@ fn renderFnProto(r: *Render, fn_proto: Ast.full.FnProto, space: Space) Error!voi break; }, .keyword_noalias, .keyword_comptime => { - try renderToken(r, last_param_token, .space); + try renderToken(r, last_param_token, .maybe_space); last_param_token += 1; }, .identifier => {}, @@ -1868,7 +1868,7 @@ fn renderFnProto(r: *Render, fn_proto: Ast.full.FnProto, space: Space) Error!voi { try renderIdentifier(r, last_param_token, .none, .preserve_when_shadowing); // name last_param_token += 1; - try renderToken(r, last_param_token, .space); // : + try renderToken(r, last_param_token, .maybe_space); // : last_param_token += 1; } if (tree.tokenTag(last_param_token) == .keyword_anytype) {