When I saw this answer: Comparing arrays, sets & their elements in SWIFT I wasn't sure if it was working properly, so I've tested it and added a better println
statement to it when testing.
Results were interesting (and proved to me that the answer is ok) so I had the idea to replace the user's println(arrayOfPairs[index])
with my own more detailed one. It wouldn't change the answer's logic, but it would definitely be a significant edit.
But just after doing it, when I saw the result, I was feeling like I was putting words in the user's mouth, exactly like @matt mentions here: https://meta.stackoverflow.com/a/281126/2227743
Besides, this user's hasn't posted a lot, so I was a bit afraid to confuse him/her with my edit if they're new to SO.
So I deleted my edit and rollbacked to the original user's answer.
Is there a recommended way to deal with this? I mean, how do you judge if your edit to an answer is within the accepted behavior?