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

Pedro Bonilla
Pedro Bonilla
956 Points

I think this test is broken because it works fine for me in xcode.

Does anyone else get this problem?

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

1 Answer

Michael Hulet
Michael Hulet
47,913 Points

This challenge is working as intended. However, your string for greeting isn't correct. Pay attention to the string the challenge is asking you to make, and make sure yours matches exactly. In this case, there's no space after the comma. Once I add one, it works just fine. Great job!