very small style change

This commit is contained in:
Mitchell Hashimoto
2024-01-26 09:01:27 -08:00
parent d51b6d4799
commit 0ba3edaf3d

View File

@ -2717,8 +2717,8 @@ pub const Keybinds = struct {
return true; return true;
} }
/// Used by Formatter /// Like formatEntry but has an option to include docs.
pub fn formatEntryDocs(self: Keybinds, docs: bool, formatter: anytype) !void { pub fn formatEntryDocs(self: Keybinds, formatter: anytype, docs: bool) !void {
if (self.set.bindings.size == 0) { if (self.set.bindings.size == 0) {
try formatter.formatEntry(void, {}); try formatter.formatEntry(void, {});
return; return;
@ -2746,6 +2746,7 @@ pub const Keybinds = struct {
} }
} }
} }
try formatter.formatEntry( try formatter.formatEntry(
[]const u8, []const u8,
std.fmt.bufPrint( std.fmt.bufPrint(
@ -2757,6 +2758,7 @@ pub const Keybinds = struct {
} }
} }
/// Used by Formatter
pub fn formatEntry(self: Keybinds, formatter: anytype) !void { pub fn formatEntry(self: Keybinds, formatter: anytype) !void {
try self.formatEntryDocs(false, formatter); try self.formatEntryDocs(false, formatter);
} }