Fix error in example

This commit is contained in:
Adrian Zankich 2014-07-10 19:28:00 -07:00
parent 11262956ab
commit d09b778c04
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ func main() {
hello := gbot.AddRobot(gobot.NewRobot("hello"))
hello.AddCommand("hi_there", func(params map[string]interface{}) interface{} {
return fmt.Sprintf("This command is attached to the robot %v", hello.Name())
return fmt.Sprintf("This command is attached to the robot %v", hello.Name)
})
gbot.Start()