Stack Overflow has always done this (C# type specifiers in <
>
being interpreted as HTML tags outside of a code block), and I've always fixed them without hesitation.
It's not about "don't make edits that change how the post is interpreted", it's "don't make edits that change the author's intent". The author intended for these to show, because they were made part of the question and are not HTML tags - they were just unaware that the text would go missing and didn't proofread their submission very well.
We see other kinds of problems like new users putting "example files" in without a code block, like "Hi, here is my file I'm trying to read, how can I split it into words":
line1
line2
line3
Of course, it looks like a single line file, and the FGITW might recommend string.Split
on spaces. Had the post been formatted with code blocks:
line1
line2
line3
...it's a different interpretation. We make edits that change interpretations all the time, but we should always seek to preserve intent.
Experienced users will probably hit the Edit button to see the raw input before they post a "it's supposed to be Type<X>
not Type
kind of comment" or if they suspect that the line structure of the example file might be misrepresented, and if inexperienced users make a comment that is invalidated by a subsequent fix, they'll probably come to acquire the relevant experience that they should check before commenting.
If you do make a formatting fix that you feel invalidates anything, or if you feel that the OP would benefit from having it drawn to their attention so they don't make the same mistake again, it can be worth making a comment to that effect.
Stream<Integer>
than just usingStream
. The poster will notice. You can also just post a comment notifying the poster of the missing backticks.