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 trialDaniel Gross
2,545 PointsI keep getting an error for no reason
I have typed: println = “Learning (language)” and i can’t get it to work. i even copied the preview example and it didn’t work. how can i fix this.
let language = "Swift"
println = "Learning \(language)"
2 Answers
Chris Shaw
26,676 PointsHi Daniel,
The keyword println
refers to a function while you're attempting to reassign it as a variable which isn't allowed, what you want is the below.
let language = "Swift"
println("Learning \(language)")
Daniel Gross
2,545 Pointsoh thanks, i watched the video again and saw my mistake.