rspec/rules/S1438/swift/rule.adoc
2020-12-23 14:59:06 +01:00

14 lines
208 B
Plaintext

In Swift, the semicolon (``;``) is optional as a statement separator, but omitting semicolons can be confusing.
== Noncompliant Code Example
----
var x = 1
----
== Compliant Solution
----
var x = 1;
----