RSPEC-4559

1 개요[ | ]

RSPEC-4559
var target, num = -5, 3

target =- num  // Noncompliant; target = -3. Is that really what's meant?
target =+ num // Noncompliant; target = 3
var target, num = -5, 3

target = -num  // Compliant; intent to assign inverse value of num is clear
target += num

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}