doc: fix comments referring to nonexistent functions

bitcoin/bitcoin: PR #36782

The review is inconclusive; no findings were published.

Coverage details