glitch where opponents pawn and my pawn are even

It is en passant and not a glitch:
https://support.chess.com/customer/en/portal/articles/1444779-my-opponent-made-an-illegal-move-

Thats the spirit. Then he can call you a punk.

learn to play chess before you come here. or at least read the rules.
What's wrong with using chess.com to learn the rules?
Opponent was able to capture my pawn even though we were on e5 and d5 respectively - his next move was diagonal d5 to e6 and somehow captured my pawn that was on e5 at the time?? I asked him to draw after the glitch as we were even at the time but the punk wouldn't