One is an em-dash (—); the other is an en-dash (–). See, e.g., https://www.merriam-webster.com/grammar/em-dash-en-dash-how-... for an overview.
One is an em-dash (—); the other is an en-dash (–). See, e.g., https://www.merriam-webster.com/grammar/em-dash-en-dash-how-... for an overview.