Example
Add an Example callout to a playground using the Example delimiter.
Works with:
â Playgrounds
   Symbol documentation
Syntax
* | + | - Example: descriptionoptional continuation of description
Example
/*:Â - Example: *A simple `for` loop.*\Â This example shows a `for` loop that prints the numbers 1 to 5.\\Â `for index in 1...5 {`\Â `Â Â Â print("index = \(index)")`\Â `}`}*/
Copyright © 2018 Apple Inc. All rights reserved. Terms of Use | Privacy Policy | Updated: 2017-06-05
