We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a1ac60 commit 5923be5Copy full SHA for 5923be5
src/engine.zig
@@ -1860,7 +1860,7 @@ pub const Element = struct {
1860
1861
/// Handle when a user chooses an element like a button, using
1862
/// the mouse or the keyboard.
1863
- pub fn chosen(self: *Element, display: *Display, gpa: Allocator) error{OutOfMemory}!void {
+ pub fn chosen(self: *Element, display: *Display, gpa: Allocator) Allocator.Error!void {
1864
switch (self.type) {
1865
.button => {
1866
switch (self.type.button.toggle) {
0 commit comments