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 Basics (retired) Types Printing Results

Marquis Newberry-Payne
Marquis Newberry-Payne
2,937 Points

What am i doing wrong?

Attempting Sting Interpolation, exactly as the video showed me to. But the answer is incorrect.

Iago Wandalsen Prates
Iago Wandalsen Prates
21,699 Points

If you post your code, is easier to help.

2 Answers

Without specific detail in your forum post I can only guess you are getting 'slash' around the wrong way. the link below has a section on string interpolation.

https://developer.apple.com/library/ios/documentation/swift/conceptual/Swift_Programming_Language/StringsAndCharacters.html

NOTE

The expressions you write inside parentheses within an interpolated string cannot contain an unescaped double quote (") or backslash (), and cannot contain a carriage return or line feed.

Marquis Newberry-Payne
Marquis Newberry-Payne
2,937 Points

I apologize for not posting the code, i figured it out. Thanks anyway everyone =)