Swift BasicsLesson 7Free preview
Swift Comments
This lesson is part of Swift · All levels
Summary
This lesson explains comment writing in Swift code for internal documentation as well as official documentation of Quick Help in Xcode. Swift supports single-line comments, nested comments, and documented markdown comments using three slashes (///).
Key points
- One line commentary begins with a double slash '//'
- Comments are lined up between '/*' and '*/'
- Swift supports nested multi-line comments
- The documentation commentary '///' supports the Markdown format and is integrated with Quick Help Xcode
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.