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
andrewgrindstaff
853 PointsAccessing Views in Code mistake
At 2:49, Ben types a comment that says //Declare our view variables and assign the views from the the layout files. He typed the twice.
2 Answers
Gloria Dwomoh
13,116 PointsI see. That isn't something very terrible as that is a comment. It is good to not write duplicate comments but it won't break your code if you do, it won't cause an error either.
andrewgrindstaff
853 PointsOk, thanks I just wanted to make sure nothing was wrong.
Gloria Dwomoh
13,116 PointsNo worries :) You don't need to write it twice but if you do, rest assured it won't break your code.