And in my experience, the best math teacher I ever had (Geometry!) was female. Lesson: Don't gender stereotype based on personal experience. Not only is it probably not relevant to others' experience, it's also not helpful.
The majority of the comment was praising my female math teachers for caring enough to go outside their comfort zone to foster a love of mathematics. If more teachers in general had the temerity to venture into the unknown when educating their students, especially in math and science, we might not have serious gender gaps in most professional fields.