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

iOS Swift Functions and Optionals Parameters and Tuples Tuples

Adam Johnson
PLUS
Adam Johnson
Courses Plus Student 4,188 Points

For this objective, I substituted the expected return value from -> String to (greeting: String, language: String) .

Is this what the objective is looking for, or do I need to add something else to add the tuple of function "greeting"?

1 Answer

Marina Alenskaja
Marina Alenskaja
9,320 Points

Yes, the first part of the challenge only requires that. If the code isn't working, try showing it here for help.

Adam Johnson
Adam Johnson
Courses Plus Student 4,188 Points

Thanks Marina! I realized I forgot to define the return "return (greeting, language)"