I spent too much time preparing an answer to a question today only to find out that the poster did not cause the problem I was seeing, it was Discourse messing with the text.
The following code is correct but will display incorrectly
for(int i in 1…5)
Discourse is ADDING an extra DOT turning the “to” into an ellipsis.
Yes, triple backticks will solve the problem, but new users often don’t know how to do that.