Skip to content

Commit a47c857

Browse files
authored
fix: example code in transports.md (#1761)
1 parent 6eac50d commit a47c857

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/transports.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export default async function (opts) {
150150

151151
return build(async function (source) {
152152
for await (let obj of source) {
153-
const toDrain = !destination.write(obj.message.toUpperCase() + '\n')
153+
const toDrain = !destination.write(obj.msg.toUpperCase() + '\n')
154154
// This block will handle backpressure
155155
if (toDrain) {
156156
await once(destination, 'drain')

0 commit comments

Comments
 (0)