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 Swift Types String Manipulation

Bob Clanfield
Bob Clanfield
2,372 Points

I wanted to review the absolute basics and been stuck for the past few hours on either a lint issue or code.

I've been trying to pass the very first challenge of String Interpolation. I have tried re-spacing, adding a period, restarting, reloading. relaunching, testing in Xcode, copy & pasting other's answers. I can't tell what's broke here. Nothing seems to work.

strings.swift
// Enter your code below
let name = "Cosimo"
let greeting = "Hi there,  \(name)"

3 Answers

Julia Delin
Julia Delin
503 Points

There's something wrong with their backend... I had the same issue. I've sent them a message with the bug :)

Bob Clanfield
Bob Clanfield
2,372 Points

So I'm not crazy!! ¯_(ツ)_/¯ ॐ

No, there is not something wrong with their back end. here is the correct code.

  // Enter your code below

  let name = "Linda"
  let greeting = "Hi there, \(name)"

you put an extra space between the comma and the slash( "," and "\")