Skip to content

Commit 5923be5

Browse files
author
Jay
committed
Use "Allocator.Error"
1 parent 0a1ac60 commit 5923be5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1860,7 +1860,7 @@ pub const Element = struct {
18601860

18611861
/// Handle when a user chooses an element like a button, using
18621862
/// the mouse or the keyboard.
1863-
pub fn chosen(self: *Element, display: *Display, gpa: Allocator) error{OutOfMemory}!void {
1863+
pub fn chosen(self: *Element, display: *Display, gpa: Allocator) Allocator.Error!void {
18641864
switch (self.type) {
18651865
.button => {
18661866
switch (self.type.button.toggle) {

0 commit comments

Comments
 (0)