In Swift programming language, single-line comments are started with double slashes (//
).
For example :
// This is a single line comment. ​
Multi-line comment : Multiline comments are started with a forward-slash followed by an asterisk (/*
) and end with an asterisk followed by a forward-slash (*/
).
For example :
/* this is multi
Line comment*/