A pedant is a person who is excessively concerned with formalism, accuracy and precision, or one who makes an ostentatious and arrogant show of learning.
Source: Wikipedia