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

Julian Zuleta
Julian Zuleta
177 Points

when i try to change print to println me sale error "prinln has been renamed as println"

should i keep using just print ?

2 Answers

Jhoan Arango
Jhoan Arango
14,575 Points

Hello Julia:

There has been some changes to Swift, since it’s a new language, it’s evolving, and sometimes it’s hard to keep up, so it’s always good practice to keep updated with the latest.

As of Swift 2.0 beta, the “println” has been changed to “print”, I am not sure what swift you currently have, nor what you are doing that it’s giving you the error. Are you working on a challenge? because if so, the challenges use swift 1.2, which in this case it will use “println” to solve the challenges.

Julian Zuleta
Julian Zuleta
177 Points

thank you for clear my question