From 4bbc6379ed308b92a8755384acf4478efac02740 Mon Sep 17 00:00:00 2001 From: Wagner Riffel Date: Wed, 13 May 2020 06:55:38 -0300 Subject: [PATCH] doc: rewrite references to preivous api to current Signed-off-by: Wagner Riffel --- app/doc.go | 2 +- layout/doc.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/doc.go b/app/doc.go index bea08231..2ce11f8b 100644 --- a/app/doc.go +++ b/app/doc.go @@ -22,7 +22,7 @@ For example: w := app.NewWindow() for e := range w.Events() { - if e, ok := e.(app.FrameEvent); ok { + if e, ok := e.(system.FrameEvent); ok { ops.Reset() // Add operations to ops. ... diff --git a/layout/doc.go b/layout/doc.go index ea43b9a8..4fe8b4a7 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.NewContext(...) + gtx := new(layout.Context) gtx.Reset(...) // Configure a top inset.