Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Jacob Blumberg
515 PointsI don't understand how to do this
I don't Understand what or how to do what it is asking
1 Answer
kirkbyo
15,791 PointsThe question is asking you to return 2 strings instead of just returning a single single string. So after the "->" you want to return greeting and language both as strings. In order to do this you can do something like this
func sayHello(person: String) -> (welcoming: String, language: String) {
let language = "English"
let welcoming = "How is it going \(person)?"
return (welcoming, language)
}
Does that answer your question?