fix(lint): correct typo and rename Marging to Margin
Some checks failed
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 32s

This commit is contained in:
2024-11-13 19:06:11 +01:00
parent 9bf146257a
commit 5908d6d5e3
3 changed files with 5 additions and 5 deletions

View File

@@ -88,7 +88,7 @@ pub fn Layout(comptime Event: type, comptime Renderer: type) type {
pub const HStack = @import("layout/HStack.zig").Layout(Event, Element, Renderer);
pub const VStack = @import("layout/VStack.zig").Layout(Event, Element, Renderer);
pub const Padding = @import("layout/Padding.zig").Layout(Event, Element, Renderer);
pub const Marging = @import("layout/Marging.zig").Layout(Event, Element, Renderer);
pub const Margin = @import("layout/Margin.zig").Layout(Event, Element, Renderer);
pub const Framing = @import("layout/Framing.zig").Layout(Event, Element, Renderer);
};
// test layout implementation satisfies the interface
@@ -96,7 +96,7 @@ pub fn Layout(comptime Event: type, comptime Renderer: type) type {
comptime Type.Interface.satisfiedBy(Type.HStack);
comptime Type.Interface.satisfiedBy(Type.VStack);
comptime Type.Interface.satisfiedBy(Type.Padding);
comptime Type.Interface.satisfiedBy(Type.Marging);
comptime Type.Interface.satisfiedBy(Type.Margin);
comptime Type.Interface.satisfiedBy(Type.Framing);
return Type;
}

View File

@@ -1,4 +1,4 @@
//! Marging layout for a nested `Layout`s or `Widget`s.
//! Margin layout for a nested `Layout`s or `Widget`s.
//!
//! # Example
//! ...

View File

@@ -52,7 +52,7 @@ pub fn main() !void {
// });
var layout = Layout.createFrom(
padding: {
var padding = Layout.Marging.init(
var padding = Layout.Margin.init(
allocator,
.{
.left = 15,
@@ -118,7 +118,7 @@ pub fn main() !void {
// .{
// .layout = Layout.createFrom(
// padding: {
// var padding = Layout.Marging.init(
// var padding = Layout.Margin.init(
// allocator,
// .{
// .margin = 10,