mod: add missing inline function attribute

Correct example to use the actual `zterm.Error` type accordingly.
This commit is contained in:
2025-03-27 21:41:18 +01:00
parent 182dec6065
commit 7e20dd73d9
2 changed files with 3 additions and 3 deletions

View File

@@ -67,7 +67,7 @@ const ErrorNotification = struct {
fn handle(ctx: *anyopaque, event: App.Event) !void {
const this: *@This() = @ptrCast(@alignCast(ctx));
switch (event) {
.key => |key| if (!key.isAscii()) return error.UnsupportedKey,
.key => |key| if (!key.isAscii()) return zterm.Error.TooSmall,
.err => |err| this.msg = err.msg,
else => {},
}