From c30ac9057705ca1fe4ebffb2f880f7c5857577ba Mon Sep 17 00:00:00 2001 From: "sashakoshka@tebibyte.media" Date: Thu, 12 Sep 2024 17:24:37 -0400 Subject: [PATCH] NewRoot now correctly returns a Root struct --- root.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root.go b/root.go index 47f6d58..cd52daa 100644 --- a/root.go +++ b/root.go @@ -11,8 +11,8 @@ type Root struct { } // NewRoot creates a new container. -func NewRoot (layout tomo.Layout, children ...tomo.Object) *Container { - this := &Container { } +func NewRoot (layout tomo.Layout, children ...tomo.Object) *Root { + this := &Root { } this.init(layout, children...) this.box.SetRole(tomo.R("objects", "Root")) this.box.SetTag("outer", true)