diff --git a/docs/05-plugin-development.md b/docs/05-plugin-development.md
index 465acd1475f..5fcb88563c9 100644
--- a/docs/05-plugin-development.md
+++ b/docs/05-plugin-development.md
@@ -241,7 +241,7 @@ Kind: `sync, sequential`
Previous Hook: [`banner`](guide/en/#banner), [`footer`](guide/en/#footer), [`intro`](guide/en/#intro), [`outro`](guide/en/#outro).
Next Hook: [`resolveFileUrl`](guide/en/#resolvefileurl) for each use of `import.meta.ROLLUP_FILE_URL_referenceId` and [`resolveImportMeta`](guide/en/#resolveimportmeta) for all other accesses to `import.meta`. Then [`renderChunk`](guide/en/#renderchunk) for each chunk.
-Can be used to augment the hash of individual chunks. Called for each Rollup output chunk. Returning a falsy value will not modify the hash.
+Can be used to augment the hash of individual chunks. Called for each Rollup output chunk. Returning a falsy value will not modify the hash. Truthy values will be passed to [`hash.update`](https://nodejs.org/dist/latest-v12.x/docs/api/crypto.html#crypto_hash_update_data_inputencoding).
The following plugin will invalidate the hash of chunk `foo` with the timestamp of the last build:
@@ -249,7 +249,7 @@ The following plugin will invalidate the hash of chunk `foo` with the timestamp
// rollup.config.js
augmentChunkHash(chunkInfo) {
if(chunkInfo.name === 'foo') {
- return Date.now();
+ return Date.now().toString();
}
}
```