mod: add missing inline function attribute

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

No files matched your search

+2 -2
View File
@@ -20,13 +20,13 @@ pub fn Element(Event: type) type {
};
/// Resize the corresponding `Element` with the given *size*.
pub fn resize(this: @This(), size: Point) void {
pub inline fn resize(this: @This(), size: Point) void {
if (this.vtable.resize) |resize_fn|
resize_fn(this.ptr, size);
}
/// Reposition the corresponding `Element` with the given *origin*.
pub fn reposition(this: @This(), origin: Point) void {
pub inline fn reposition(this: @This(), origin: Point) void {
if (this.vtable.reposition) |reposition_fn|
reposition_fn(this.ptr, origin);
}