rspec/rules/S1438/swift/rule.adoc

29 lines
470 B
Plaintext
Raw Normal View History

2021-01-27 13:42:22 +01:00
In Swift, the semicolon (``++;++``) is optional as a statement separator, but omitting semicolons can be confusing.
2020-06-30 12:47:33 +02:00
== Noncompliant Code Example
----
var x = 1
----
== Compliant Solution
----
var x = 1;
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]