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

Challenge help

Hi

I've managed to find the answer however i still don't understand what is wrong with my code. This is the error that comes up in the editor

swift_lint.swift:19:23: error: value of type 'Post' has no member 'decription' let postDescription = firstPost.decription()

here is my code

struct Tag { let name: String } struct Post { let title: String

let author: String

let tag: Tag

func description() -> String{

return "(title) by (author). Filed under (tag.name)" }

}

let firstPost = Post (title: "IOS Development", author: "Apple", tag: Tag(name: "Swift") ) let postDescription = firstPost.decription()

For some reason the code doesn't paste exactly how ive typed it so apologies

Jennifer Nordell

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! Take a good look at the error:

swift_lint.swift:19:23: error: value of type 'Post' has no member 'decription' let postDescription = firstPost.decription()

It's a typo. You misspelled "description" and typed "decription". You just inadvertently missed an "s" in the middle of the word :smiley:

Happens to us all! :sparkles: