Don’t directly or indirectly point out the teacher’s errors in class, unless you already have evidence the teacher is okay with that. If it is something that is truly important, you can try to clarify with the teacher after class or after school.
There was a kid in one of my classes a few years back that constantly corrected the teacher. He was obviously a genius but also a social failure. He still got a great grade, but nobody, including the teacher liked him.