28 lines
419 B
Plaintext
28 lines
419 B
Plaintext
include::../description.adoc[]
|
|
|
|
== Noncompliant Code Example
|
|
|
|
----
|
|
var i:Int
|
|
for i in 1...10 {
|
|
print("i is \(i)")
|
|
continue // this is meaningless; the loop would continue anyway
|
|
}
|
|
----
|
|
|
|
== Compliant Solution
|
|
|
|
----
|
|
var i:Int
|
|
for i in 1...10 {
|
|
print("i is \(i)")
|
|
}
|
|
----
|
|
|
|
ifdef::rspecator-view[]
|
|
== Comments And Links
|
|
(visible only on this page)
|
|
|
|
include::../comments-and-links.adoc[]
|
|
endif::rspecator-view[]
|