From c0beeb5e77dc40b269fa329ff6cc70c00a9fa89d Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 2 Dec 2019 13:21:35 +0100 Subject: [PATCH] layout: update documentation for NewContext Signed-off-by: Elias Naur --- layout/doc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.