Skip to content

Commit f24c281

Browse files
committed
fix placeholder syntax coloring
1 parent 718caa7 commit f24c281

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ npm install --save cloudfront-log-parser
1515
Given a string or Buffer of a log file, the `parse` function can be called directly, returning an array of parsed log entries.
1616
```javascript
1717
const CloudFrontParser = require('cloudfront-log-parser');
18-
const accesses = CloudFrontParser.parse(<Buffer or string of log file>, { format: 'web' });
18+
const accesses = CloudFrontParser.parse('<contents of log file>', { format: 'web' });
1919
//accesses = array of objects, see below for format
2020
```
2121

2222
### Callback API
2323
If `parse` is provided with a callback function, it will be called with an array of parsed entries as the result.
2424
```javascript
2525
const CloudFrontParser = require('cloudfront-log-parser');
26-
CloudFrontParser.parse(<Buffer or string of log file>, { format: 'web' }, function (err, accesses) {
26+
CloudFrontParser.parse('<contents of log file>', { format: 'web' }, function (err, accesses) {
2727
//accesses = array of objects, see below for format
2828
});
2929
```

0 commit comments

Comments
 (0)