I found this answer today:
The code itself is fine, but there's nothing explaining the problem or why the provided code fixes the problem.
I commented on the answer requesting the user to add more details:
Please explain your code, instead of doing all the work for the OP.
The user then proceeded to argue that their comments within the code are sufficient. The comments sort-of describe the code, but it'd be useful if there was some sort of description (even one sentence) describing the code, such as the author of another answer on the same question did:
Use a nested loop structure. Use the outer loop to 'walk' down your triangle.
These kind of answers don't educate anyone, and may be hard to interpret for new programmers. Sure, I can interpret the code fine and can tell exactly what's going on inside it, but that doesn't mean a new programmer would be able to.
I read Is it wrong to ask for a description of how/why the code works in code-only answers?, in particular Makoto's answer:
While we can read and understand code, the better teaching tool (in my opinion) is to explain the rationale behind the code. If a person is unwilling to do so, then you could either leave a comment, downvote, or both. If they add an explanation, that's great - if they don't, then this leaves an opportunity for someone else to come along with a more complete answer.
Are code-only answers with comments acceptable? Was I incorrect to downvote the answer + request the OP to expand the answer?