do you really want an em-dash there? they are typically used in sentences to introduce a strong break in a parethetical clause, but without using parentheses :)
Is this the grammar equivalent of people misreading the contrived code snippet—often shortened to focus the reader on the concept being discussed (like on StackOverflow)—for the real thing?