Publication starts an article's maintenance period. Dependencies change and an example that once worked can become misleading. Replacing the text without an explanation leaves a returning reader unable to distinguish a correction from their own mistake.
State the correction
Name the behaviour that was wrong, what now happens and whether readers need to act. Keep the original publication date distinct from a later review date.
Preserve the route
A correction is normally still the same article. Keep its address and link to a replacement when advice has been retired. Stable article addresses explain the navigation consequence.