In my opinion, if you are changing the logic of code itself, then it needs to be a comment because you can't know for sure what their true intentions were. That way, if the author does not agree, they do not need to rollback, but can comment back why it is incorrect or ignore it entirely.
Even if it perfectly fits their explanation, it just seems better to leave a comment especially if it will be a suggested edit. Suggested edits that change code are usually rejected as an invalid edit since it is hard to tell if it is what the author was trying to achieve especially for those who do not know the coding language in question.