Heat the oven to 350°F (175°C) and grease a mini donut pan.
Whisk the flour, cocoa powder, sugar, baking soda and salt in a bowl.
In another bowl, whisk the egg, buttermilk, melted butter, vanilla and peppermint extract.
Stir the wet ingredients into the dry just until no streaks of flour remain.
Pipe or spoon the batter into the pan, filling each cavity about two-thirds full.
Bake 7 to 9 minutes, until the tops spring back when touched. Cool 3 minutes in the pan, then move to a rack. Repeat with the remaining batter.
Whisk the powdered sugar, milk and peppermint extract into a smooth, thick glaze. Add milk a few drops at a time if needed.
Dip the tops of the cooled donuts in the glaze and sprinkle right away with crushed candy cane. Let set 15 minutes.