Skip to content
public-library›Rules›Documentation›Comment intent, and point at the owner instead of describing it

Comment intent, and point at the owner instead of describing it

Document purpose, observable contracts, and constraints where readers need them: why this file or block exists, what callers can rely on, and any constraint a reader can't see in the code. Don't duplicate implementation details or conventions that an authoritative owner already states, whether that owner is the code right below the comment or another file, tool, or document. When a reader needs the owner, name it in one clause.

In the full rule