This is actually a bug: that edit shouldn't be approved.
This morning, we released a feature to override suggested edits. This is only enabled when there've been no subsequent edits to the post since the suggested edit was approved or rejected, as it'd be very likely to corrupt the post otherwise.
...But there's a bit of a bug in the check: it doesn't block the override action on suggestions that were rejected because another edit - one already in progress at the time the edit was suggested - was applied to the post. Such edits automatically reject the suggestion, without penalty to the editor, as (once again) they would likely cause corruption to the post if approved. The timestamp on the rejection is identical to the timestamp on the edit that triggered it...
...So what happened here goes as follows:
- Bruce was already editing the post to add a bit of additional information (and format the code) when you submitted the edit to format the code.
- You submitted your edit, which put it in the queue for review and also put a notification in Bruce's inbox informing him of the pending edit.
- A few minutes later, Bruce finished his revisions and submitted them, automatically rejecting yours.
- Bruce then checked his inbox, and clicked the link to view your suggested edit.
- The system, failing to recognize that there'd been a subsequent edit, showed Bruce an "Approve" option on your edit, which he clicked and confirmed.
- The system recorded Bruce's "approve" review, and then tried to apply the edit... and immediately failed (because there'd been a subsequent edit).
- The system returned an error to Bruce, which read "" (nothing at all).
- Bruce tried to approve the edit once more before giving up.
- You found your edit both approved and rejected, and came here looking for answers.
Note that your edit was definitely not applied to the post; if it had been, it'd have wiped out Bruce's additions. Bruce did not make any grace-period edits to the question.
Marking this as a bug, as we should not have shown the override option in this situation. Thanks for bringing it to our attention!