677 B
677 B
title |
---|
Comments |
Comments
Comments allow you to document your code. Comments are ignored by the Swift compiler, and are only useful for people reading your code base.
Single-line comments begin with two forward-slashes //
.
Example:
// Hello, single-line comment!
Multiline comments begin with a forward-slash followed by an asterisk /*
and ends with an asterisk followed by a forward-slash */
Example:
/* Hello,
multiline-line comment! */