Permalink
Browse files

codes.200 isn't valid JavaScript

  • Loading branch information...
1 parent febe0a2 commit 2cce749c004dd1e301a3f37a9666ba41ea593611 @timoxley timoxley committed Feb 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -12,7 +12,7 @@ npm install http-status-codes-json
```js
var codes = require('http-status-codes-json');
-console.log(codes.200);
+console.log(codes[200]); // => 'OK'
```
[^1]: <http://www.iana.org/assignments/http-status-codes/http-status-codes.xml>

0 comments on commit 2cce749

Please sign in to comment.