Fix typo in docs/api-stream.md (#1701)

This commit is contained in:
徐朝逸 2018-10-16 19:21:06 +08:00 • committed by Francis Gulotta
parent 865bb8aacc
commit 4e0126dc38

View file

@ -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)
)
```