I was part of a paper where the section I wrote for my contribution (as an undergrad) was edited by the person mentoring me. The prose for this section explains things correctly, but the mathematical notation doesn't quite make sense or add up to me. I initially wrote the mathematical notation differently (to back up the prose), but they changed it. I raised this once verbally, but that didn't end up going anywhere -- I wasn't sure if I just didn't interpret the notation correctly (as I am an undergrad after all) or if it wasn't quite correct. The section also contains work which was built upon and improved by the person mentoring me (they made modifications to the original contribution I had made) so in some sense, I thought that they had intentionally changed it with that in mind. It's been nagging at the back of my head though, and as of now it is heading into publication (it passed peer review). I assumed because it passed peer review, that I was incorrect about the mathematical notation (and it was indeed acceptable).
What are the consequences if this is a mistake? It feels like one, but I am not sure. The results of the paper are not changed in any way -- the prose and psuedocode explaining the algorithm are fine, but there's 2 lines of mathematical notation which do not seem correct to me.