diff --git a/layout/doc.go b/layout/doc.go index 12bc7c7a..ea43b9a8 100644 --- a/layout/doc.go +++ b/layout/doc.go @@ -13,7 +13,7 @@ in an implicit Context to keep the Widget declaration short. For example, to add space above a widget: - gtx := &layout.Context{...} + gtx := layout.NewContext(...) gtx.Reset(...) // Configure a top inset.