felixge / felixge/nodeguide.com

typo in node beginner's guide (s/data/req)

Open
#20 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
CSS
Stars
368
Forks
40
PR merge metrics
No merged PRs in 30d

Description

In first example under EventEmitters:

```
var data = '';
req
.on('data', function(chunk) {
data += chunk;
})
.on('end', function() {
console.log('POST data: %s', data);
})
```

Shouldn't that first line be a declaration of 'req' not 'data'?

thanks for the helpful docs!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.