diff --git a/README.md b/README.md index 457ff4bc..b647aef7 100644 --- a/README.md +++ b/README.md @@ -229,7 +229,7 @@ import { decodeStream } from "@msgpack/msgpack"; const stream: AsyncIterator<Uint8Array>; // in an async function: -for await (const item of decodeStream(stream)) { +for await (const item of decodeMultiStream(stream)) { console.log(item); } ```