Pedant

meaning: a person who is too interested in formal rules and small details that are not important

usage: Grammarians may be serious students of language, but they are frequently caricatured as pedants.