rspec/rules/S2757/go/code-example.adoc

8 lines
165 B
Plaintext
Raw Normal View History

[source,go]
----
var target, num = -5, 3
target =- num // Noncompliant: target = -3. Is that the expected behavior?
target =+ num // Noncompliant: target = 3
----