Note: links only available to 10K+ users.
I made an edit on Define a function and assign it to a method in a ECMAScript 6 Class which was immediately rolled back.
The edit attempted to put the code in the question together into a stack snippet to show the asker with easily accessible evidence that the error they claimed was not reproducible, and gave them a template which would be easy to edit and introduce the error with more detail from whatever code they had originally.
In addition, my edit applied a strikethrough to a clause in a sentence that said something to the effect of:
something something...,
but obviously the code doesn't work.
just before the stack snippet I placed into the question, which was literally comprised of code copied-and-pasted verbatim from each of the code blocks originally in the question.
The rest of the question remained untouched.
I immediately followed this edit up with a comment informing the asker to edit their question and create a verifiable example, and a close-vote as off-topic since the error was "no longer reproducible."
What policy, if any, was I violating, by making that edit? I did not change the intent of the code, and I did not "solve the problem" in the question, it was already invalid to begin with.
For reference, there was a comment posted by the user who rolled back, to explain the reason just before the question was deleted by the OP which read:
Edits should improve questions/answers. Your edit changed the posts meaning without substantially improving it. Edits are also not a way to communicate with the OP. Furthermore, your edit obscures the question for passers-by.
In my defense, I don't think that my edit changed the post's meaning, I think it improved it by giving a verifiable example, and I don't think that my edit attempted to directly communicate with the OP. I can however, understand the claim that my edit may have obscured the question, but anyone with much experience in JavaScript would have quickly realized the fallacy even without the edit, in my opinion.
My goal with this meta discussion is to get a better understanding of what's considered within the realm of "acceptable" edits.
I have a problem -- No I don't have a problem
.