Editing is at the heart of how these pages become more useful to more users. Looking at answers showing code that has more limitations than the question is not the best case scenario. So where others can see ways to broaden the scope, it's certainly worth suggesting an improvement.
Problems can arise however when edits are applied without review. If a user with more than 2000 reputation points spots a potentially useful change, it is applied swiftly and most often works out for the best, but there are still a few hiccups that can occur indirectly. Some cases the original author of the answer still feels some ownership of the post, which is understandable when they are still seeing it's reception in it's original form, but is not how these sites work. Rarely but still significantly, problems arise when the editing user hasn't slowed down enough to explain newly introduced information. Also rarely one may simply forget their edits have become instant, expecting the answer author to understand the edit may not be complete. The messiest situations arise with a combination of these, or when someone perceives a combination of these, and even trivial change can take on a life of it's own.
My hope (not directed at any case, and you might not agree it applies in the linked case) is that when a concern or confusion arises, people have the opportunity to step back, rollback, and comment. Then without any pressure the situation becomes understandable to those directly involved and passers by (sometimes known as "third user" even though in the presence of edits this is not intuitive) who must take it on faith that all code provided should be in a working state with it's possible scope limits spelled out.