oops
This commit is contained in:
parent
c709eaf71a
commit
a5ec44b1f1
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ import (
|
|||
)
|
||||
|
||||
// Hello returns a greeting for the named person.
|
||||
func Hello(name string) string {
|
||||
func Hello(name string) (string, error) {
|
||||
// If no name was given, return an error with a message.
|
||||
if name == "" {
|
||||
return "", errors.New("empty name")
|
||||
|
|
Loading…
Add table
Reference in a new issue