Complete the code to add a single-line comment in Swift.
[1] This is a commentIn Swift, single-line comments start with //.
Complete the code to start a multi-line comment in Swift.
[1] This is a
multi-line comment
*/Multi-line comments in Swift start with /* and end with */.
Fix the error in the documentation comment syntax.
[1] This function adds two numbers. func add(a: Int, b: Int) -> Int { return a + b }
In Swift, documentation comments use three slashes /// before the comment.
Fill both blanks to create a documentation comment with a parameter description.
[1] Adds two numbers. [2] - Parameter a: The first number.
Documentation comments start with ///. Parameter descriptions use a dash - followed by the parameter name.
Fill all three blanks to complete the documentation comment with summary, parameter, and return description.
[1] Calculates the sum of two integers. [2] - Parameter x: The first integer. [3] - Returns: The sum of x and y.
Documentation comments lines start with ///. Use a dash - before parameter and return descriptions.
