Using Comments
You indicate comments in Swift by using a double forward slash, exactly as in Objective-C. Here’s an example:
// This is a comment about the number of retrieslet numberOfRetries = 5 // We can also put a comment on the end of a line./* Comments can spanmultiple lines */
Get Learning Swift™ Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.