We've written a program and expected it to print Hey, Andy, but the function prints instead of returning the greeting, so the Go compiler rejects it with missing return.
The caller already stores the returned value in greeting and prints it afterwards, so the function should use return.
Assignment:
Fix getGreeting so it returns "Hey, " + name.
Free plan: 30 tutor messages. PRO is unlimited.
Saved
Ctrl + Enter to check
