Test: Swift - Comments and Header Docs
2. Which of the following are true for writing structured comments in Swift (those that can be used to generate documentation)?
Congratulations! Correct Answer.
You Answered: None. If you took the test, your answer will show up here.
Correct Answer: Precede them with ///; Embed them in /** and */;
ExplanationIn order to generate Quick Help within Xcode and Playgrounds and generate documentation with other programs, single line structured comments are preceded by /// and multi-line comments are inside /** and */
Take the TestTake the complete test on this topic. You will be able to review answers to questions and get a test score.
Take the Test
Question 2 of 5
Test is Based on this Article
More Articles With Similar Tags