rspec/rules/S881/swift/rule.adoc

23 lines
272 B
Plaintext
Raw Normal View History

2020-06-30 12:50:59 +02:00
include::../description.adoc[]
== Noncompliant Code Example
----
u8a = ++u8b + u8c--
foo = bar++ / 4
----
== Compliant Solution
The following sequence is clearer and therefore safer:
2020-06-30 12:50:59 +02:00
----
++u8b
u8a = u8b + u8c
u8c--
foo = bar / 4
bar++
----
include::../see.adoc[]