Oops, NewButton() should return Button, not the backend type. Fixed.

This commit is contained in:
Pietro Gagliardi 2014-07-19 16:47:19 -04:00
parent 214dc6cd5c
commit fa5b2012d0
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}