Fix usage example in README
This commit is contained in:
parent
47160418aa
commit
a34d20541e
1 changed files with 15 additions and 15 deletions
|
@ -73,7 +73,7 @@ pub fn main() !void {
|
|||
const deinit_status = gpa.deinit();
|
||||
//fail test; can't try in defer as defer is executed after we return
|
||||
if (deinit_status == .leak) {
|
||||
log.err("memory leak", .{});
|
||||
std.log.err("memory leak", .{});
|
||||
}
|
||||
}
|
||||
const alloc = gpa.allocator();
|
||||
|
@ -109,7 +109,7 @@ pub fn main() !void {
|
|||
while (true) {
|
||||
// nextEvent blocks until an event is in the queue
|
||||
const event = vx.nextEvent();
|
||||
log.debug("event: {}", .{event});
|
||||
std.log.debug("event: {}", .{event});
|
||||
// exhaustive switching ftw. Vaxis will send events if your Event enum
|
||||
// has the fields for those events (ie "key_press", "winsize")
|
||||
switch (event) {
|
||||
|
@ -169,9 +169,9 @@ pub fn main() !void {
|
|||
.height = .{ .limit = 3 },
|
||||
.border = .{
|
||||
.where = .all,
|
||||
.style = .{ .fg = .index = color_idx },
|
||||
.style = style,
|
||||
},
|
||||
})
|
||||
});
|
||||
|
||||
// Draw the text_input in the child window
|
||||
text_input.draw(child);
|
||||
|
|
Loading…
Reference in a new issue