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
Some checks failed
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 32s
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
//! ...
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user