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 HStack = @import("layout/HStack.zig").Layout(Event, Element, Renderer);
|
||||||
pub const VStack = @import("layout/VStack.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 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);
|
pub const Framing = @import("layout/Framing.zig").Layout(Event, Element, Renderer);
|
||||||
};
|
};
|
||||||
// test layout implementation satisfies the interface
|
// 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.HStack);
|
||||||
comptime Type.Interface.satisfiedBy(Type.VStack);
|
comptime Type.Interface.satisfiedBy(Type.VStack);
|
||||||
comptime Type.Interface.satisfiedBy(Type.Padding);
|
comptime Type.Interface.satisfiedBy(Type.Padding);
|
||||||
comptime Type.Interface.satisfiedBy(Type.Marging);
|
comptime Type.Interface.satisfiedBy(Type.Margin);
|
||||||
comptime Type.Interface.satisfiedBy(Type.Framing);
|
comptime Type.Interface.satisfiedBy(Type.Framing);
|
||||||
return Type;
|
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
|
//! # Example
|
||||||
//! ...
|
//! ...
|
||||||
@@ -52,7 +52,7 @@ pub fn main() !void {
|
|||||||
// });
|
// });
|
||||||
var layout = Layout.createFrom(
|
var layout = Layout.createFrom(
|
||||||
padding: {
|
padding: {
|
||||||
var padding = Layout.Marging.init(
|
var padding = Layout.Margin.init(
|
||||||
allocator,
|
allocator,
|
||||||
.{
|
.{
|
||||||
.left = 15,
|
.left = 15,
|
||||||
@@ -118,7 +118,7 @@ pub fn main() !void {
|
|||||||
// .{
|
// .{
|
||||||
// .layout = Layout.createFrom(
|
// .layout = Layout.createFrom(
|
||||||
// padding: {
|
// padding: {
|
||||||
// var padding = Layout.Marging.init(
|
// var padding = Layout.Margin.init(
|
||||||
// allocator,
|
// allocator,
|
||||||
// .{
|
// .{
|
||||||
// .margin = 10,
|
// .margin = 10,
|
||||||
|
|||||||
Reference in New Issue
Block a user