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.