rspec/rules/S1438/swift/rule.adoc
2021-01-27 13:42:22 +01:00

14 lines
212 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;
----