From fa5b2012d0481600a9fb7bbf9782322a3858cd7d Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 19 Jul 2014 16:47:19 -0400 Subject: Oops, NewButton() should return Button, not the backend type. Fixed. --- redo/controls.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'redo/controls.go') diff --git a/redo/controls.go b/redo/controls.go index 6de193a..7a002f0 100644 --- a/redo/controls.go +++ b/redo/controls.go @@ -25,6 +25,6 @@ type Button interface { } // NewButton creates a new Button with the given label text. -func NewButton(text string) *button { +func NewButton(text string) Button { return newButton(text) } -- cgit v1.2.3