Commit 261e0c88506 for nodejs

commit 261e0c8850672b295c3a71a0bd7117c53bdf6ee2
Author: Cleisson <cleissonconstc@gmail.com>
Date:   Sun Dec 6 15:57:55 2026 -0300

    doc: clarify how StringDecoder.end() handles incomplete input

    Signed-off-by: Cleisson Moura <cleissonconstc@gmail.com>
    Assisted-by: Codex
    PR-URL: https://github.com/nodejs/node/pull/67760
    Reviewed-By: James M Snell <jasnell@gmail.com>

diff --git a/doc/api/string_decoder.md b/doc/api/string_decoder.md
index 5d848cfb6d5..f34172e4d09 100644
--- a/doc/api/string_decoder.md
+++ b/doc/api/string_decoder.md
@@ -92,9 +92,11 @@ added: v0.9.3
 * `buffer` {string|Buffer|TypedArray|DataView} The bytes to decode.
 * Returns: {string}

-Returns any remaining input stored in the internal buffer as a string. Bytes
-representing incomplete UTF-8 and UTF-16 characters will be replaced with
-substitution characters appropriate for the character encoding.
+Returns any remaining input stored in the internal buffer as a string.
+An incomplete UTF-8 sequence at the end of the input is decoded as the
+replacement character (`U+FFFD`). For UTF-16LE, a trailing byte that does not form
+a complete code unit is discarded, and a trailing unpaired high surrogate is
+returned as a single code unit.

 If the `buffer` argument is provided, one final call to `stringDecoder.write()`
 is performed before returning the remaining input.