It's not your fault, you did nothing wrong.
The answerer did do something mildly wrong -- posting a terribly incomplete answer to lock in the timestamp, then "ninja-edit"ing to add more content. All edits within the first five minutes become part of the "original" revision publicly visible.
This is common enough to have its own name — Fastest Gun in the WestFastest Gun in the West (FGITW). There are a whole host of potential problems with this, including having five minutes to steal someone else's answer and have the timestamps lie and say you had it first… but there are also benefits, when a well-known user does this it effectively marks the question as their territory, and other experts won't waste time writing their own answers (provided of course that they trust the first user to do it right), so it remains tolerated. But it does come with some risks — someone can see that placeholder version and cast perfectly legitimate votes and flags. But the answerer chose to game the system with a placeholder; they chose to accept the risks.