EXERCISE 39–2 Other punctuation marks
Example:

Some athletes, basketball players, for example, volunteered at the soup kitchen twice a month.

Some athletes—basketball players, for example—volunteered at the soup kitchen twice a month.

The second sentence correctly uses dashes to enclose a parenthetical example.