mod: add missing inline function attribute
Correct example to use the actual `zterm.Error` type accordingly.
This commit is contained in:
@@ -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 => {},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user