Force of habit. Every style guide I've worked with called for em dashes in a case like this (the en dash with spaces is a bit of an Britishism). But, yes, this was a mistake, on a couple of levels. An em dash shouldn't have spaces, and, as you pointed out, it's inconsistent with the rest of the docs. I'll revert this change.