Skip to content

Commit 56a334a

Browse files
authored
Merge pull request msgpack#116 from RileyEv/patch-1
Fix import typo in README
2 parents 2ace10d + c2682d3 commit 56a334a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ It throws errors when the input is not an array-family.
184184
for example:
185185

186186
```typescript
187-
import { encode } from "@msgpack/msgpack";
187+
import { decodeArrayStream } from "@msgpack/msgpack";
188188

189189
const stream: AsyncIterator<Uint8Array>;
190190

@@ -204,7 +204,7 @@ In other words, it decodes an unlimited stream and emits an item one by one.
204204
for example:
205205

206206
```typescript
207-
import { encode } from "@msgpack/msgpack";
207+
import { decodeStream } from "@msgpack/msgpack";
208208

209209
const stream: AsyncIterator<Uint8Array>;
210210

0 commit comments

Comments
 (0)