From 4e0126dc3870df359626a657b6d6ea95230dbb92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=9C=9D=E9=80=B8?= Date: Tue, 16 Oct 2018 19:21:06 +0800 Subject: [PATCH] Fix typo in docs/api-stream.md (#1701) --- docs/api-stream.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-stream.md b/docs/api-stream.md index 07c751b..5d60d12 100644 --- a/docs/api-stream.md +++ b/docs/api-stream.md @@ -121,7 +121,7 @@ We make an effort to identify the hardware attached and have consistent results ```js var SerialPort = require('serialport') SerialPort.list().then( - ports => posts.forEach(console.log), + ports => ports.forEach(console.log), err => console.error(err) ) ```