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 trialJoyce Ryu
1,124 PointsError!
func greeting(){ println("Hello") } greeting()
I don't know what is wrong with my code! could you please help me out?
func greeting(){
println("Hello")
}
greeting()
Brendan Whiting
Front End Web Development Techdegree Graduate 84,738 PointsWhat is the error? Put the code into a playground in Xcode and see what error pops up.
2 Answers
Christian Kroul
9,849 PointsOk are you getting this message "println has been renamend to print"
Christian Kroul
9,849 PointsBecause it depends, on what version of xcode you are running on, if its Version 7.0 then they rechanged the function name from println() to print()
Christian Kroul
9,849 PointsChristian Kroul
9,849 PointsWait you need to give space for your parameters and curly braces, like this