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

Sam Katz
Sam Katz
2,986 Points

stuck on interpolation

where have I gone wrong?

println.swift
let language = "Swift"
println "Learning \(language)"

3 Answers

You forgot to add the the brackets!

println("Learning \(language)")
Mike Me
Mike Me
5,148 Points

David right, you forget the brackets. Also I'd like to inform you that Swift 2.0 doesn't use println function anymore. Just keep in mind if you ever want to use this function type "print" without "ln".

Sam Katz
Sam Katz
2,986 Points

Thanks to everyone. It was a tie, but I can't say that.