layout: update documentation for NewContext

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-12-02 13:21:35 +01:00
parent 1762e0c07b
commit c0beeb5e77
+1 -1
View File
@@ -13,7 +13,7 @@ in an implicit Context to keep the Widget declaration short.
For example, to add space above a widget: For example, to add space above a widget:
gtx := &layout.Context{...} gtx := layout.NewContext(...)
gtx.Reset(...) gtx.Reset(...)
// Configure a top inset. // Configure a top inset.