It is an example of the proper use of dashes, but the ones in your post are actually en dashes. This is a stylistic difference that does not affect the meaning or usage.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.