diff --git a/doc/api/errors.md b/doc/api/errors.md index 9420e07b16c871..ebbe215b6075f1 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -2349,7 +2349,7 @@ such as `process.stdout.on('data')`. [`sign.sign()`]: crypto.html#crypto_sign_sign_privatekey_outputencoding [`stream.pipe()`]: stream.html#stream_readable_pipe_destination_options [`stream.push()`]: stream.html#stream_readable_push_chunk_encoding -[`stream.unshift()`]: stream.html#stream_readable_unshift_chunk +[`stream.unshift()`]: stream.html#stream_readable_unshift_chunk_encoding [`stream.write()`]: stream.html#stream_writable_write_chunk_encoding_callback [`subprocess.kill()`]: child_process.html#child_process_subprocess_kill_signal [`subprocess.send()`]: child_process.html#child_process_subprocess_send_message_sendhandle_options_callback diff --git a/doc/api/stream.md b/doc/api/stream.md index b78fa7fde46cad..46f4226039c2df 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -1195,7 +1195,7 @@ setTimeout(() => { }, 1000); ``` -##### readable.unshift(chunk) +##### readable.unshift(chunk[, encoding])