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

thomas howard
thomas howard
17,572 Points

You're code is not working on this for some reason. You want the fancy stuff instead of just having the code be plain t

not too thrilled right now. I did what was asked, the code won't run.

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

2 Answers

Stone Preston
Stone Preston
42,016 Points

the swift eBook states:

String interpolation is a way to construct a new String value from a mix of constants, variables, literals, and expressions by including their values inside a string literal. Each item that you insert into the string literal is wrapped in a pair of parentheses, prefixed by a backslash

your slash is the wrong type. to use interpolation you need to use a backslash \ not a forward slash /

let language = "Swift"
println("Learning \(language)")
thomas howard
thomas howard
17,572 Points

thank, Preston. Worked.