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