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 trialjcorum
71,830 PointsStrange error message
After doing the challenge, using interpolation, I got the following error message (except that the X was red and inside a red circle, and Bummer! was also in red):
X Bummer! You printed "Learning Swift", but you were supposed to print "Learning Swift".
Not sure what to do with this???
3 Answers
jcorum
71,830 PointsChristopher, thanks for your interest. What I did to get it to accept my code (as entered) was to clear the browser cache. Then I refreshed the page, and the error message was replaced by the congrats message.
Christopher Augg
21,223 PointsJames,
You probably have an extra space in your string.
println("Learning \(language)") //delete a space between Learning and \
Hope this helps.
Regards,
Chris
jcorum
71,830 PointsNope, I checked for an extra space
Christopher Augg
21,223 PointsHmm. I made it give me that error with the space. It passes the test for me if I take it out. That error is also given if the space is just before the ending ) . Basically cannot have any spaces other than the one. Can you provide the code you are using? That would help me narrow it down.
Thanks
Christopher Augg
21,223 PointsChristopher Augg
21,223 PointsAh. Nice! Good to know for future courses for sure. Thanks for letting me know.