authorgravatar for goon.pri.low@gmail.comKendall Condon <goon.pri.low@gmail.com> 2026-03-22 17:52:33-04:00
committergravatar for goon.pri.low@gmail.comKendall Condon <goon.pri.low@gmail.com> 2026-03-25 17:30:51-04:00
log0b52cac43465bdd920a506e43b716a8754bb3426
tree74df6aea80a9c7dde83eacfc2b374172fa9b1fd1
parent09e523bd51185ae8d71c347ce606e3b74dea1d5b

zig fmt: add missed `maybe_space`s


1 files changed, 3 insertions(+), 3 deletions(-)

lib/std/zig/Ast/Render.zig+3-3
...@@ -1799,7 +1799,7 @@ fn renderFnProto(r: *Render, fn_proto: Ast.full.FnProto, space: Space) Error!voi...@@ -1799,7 +1799,7 @@ fn renderFnProto(r: *Render, fn_proto: Ast.full.FnProto, space: Space) Error!voi
1799 break;1799 break;
1800 },1800 },
1801 .keyword_noalias, .keyword_comptime => {1801 .keyword_noalias, .keyword_comptime => {
1802 try renderToken(r, last_param_token, .space);1802 try renderToken(r, last_param_token, .maybe_space);
1803 last_param_token += 1;1803 last_param_token += 1;
1804 },1804 },
1805 .identifier => {},1805 .identifier => {},
...@@ -1850,7 +1850,7 @@ fn renderFnProto(r: *Render, fn_proto: Ast.full.FnProto, space: Space) Error!voi...@@ -1850,7 +1850,7 @@ fn renderFnProto(r: *Render, fn_proto: Ast.full.FnProto, space: Space) Error!voi
1850 break;1850 break;
1851 },1851 },
1852 .keyword_noalias, .keyword_comptime => {1852 .keyword_noalias, .keyword_comptime => {
1853 try renderToken(r, last_param_token, .space);1853 try renderToken(r, last_param_token, .maybe_space);
1854 last_param_token += 1;1854 last_param_token += 1;
1855 },1855 },
1856 .identifier => {},1856 .identifier => {},
...@@ -1868,7 +1868,7 @@ fn renderFnProto(r: *Render, fn_proto: Ast.full.FnProto, space: Space) Error!voi...@@ -1868,7 +1868,7 @@ fn renderFnProto(r: *Render, fn_proto: Ast.full.FnProto, space: Space) Error!voi
1868 {1868 {
1869 try renderIdentifier(r, last_param_token, .none, .preserve_when_shadowing); // name1869 try renderIdentifier(r, last_param_token, .none, .preserve_when_shadowing); // name
1870 last_param_token += 1;1870 last_param_token += 1;
1871 try renderToken(r, last_param_token, .space); // :1871 try renderToken(r, last_param_token, .maybe_space); // :
1872 last_param_token += 1;1872 last_param_token += 1;
1873 }1873 }
1874 if (tree.tokenTag(last_param_token) == .keyword_anytype) {1874 if (tree.tokenTag(last_param_token) == .keyword_anytype) {