cmd/doc: fix inconsistent receiver name

The ToText method of Package is the only one with a receiver declared 'p'; all the rest have 'pkg'.