The definition of pedantic is someone who has a very narrow focus on a subject and tends to overly show off their knowledge by getting caught up in small details or by pointing out mistakes on the subject.(adjective)
An example of someone who is pedantic is an English teacher who corrects grammar mistakes all the time.
See pedantic in American Heritage Dictionary 4
Learn more about pedantic