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

9 lines
160 B
Plaintext
Raw Normal View History

[source,ruby]
----
target = -5
num = 3
target =- num # Noncompliant: target = -3. Is that the intended behavior?
target =+ num # Noncompliant: target = 3
----