rename Button.Name -> String

This commit is contained in:
faiface 2017-01-26 15:31:54 +01:00
parent df21279536
commit e670735858
1 changed files with 2 additions and 2 deletions

View File

@ -186,8 +186,8 @@ const (
KeyLast = Button(glfw.KeyLast)
)
// Name returns a human-readable string describing the Button.
func (b Button) Name() string {
// String returns a human-readable string describing the Button.
func (b Button) String() string {
name, ok := buttonNames[b]
if !ok {
return "Invalid"