Skip to content

Commit b472b40

Browse files
committed
Removed trailing blank spaces
1 parent e3d385e commit b472b40

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -429,10 +429,10 @@ parser.parse(buffer);
429429
```
430430

431431
### wrapped(name[, options])
432-
Read data then wrap it by transforming it by a function for further parsing.
433-
It works similarly to a buffer where it reads a block of data. But instead of returning the buffer it
432+
Read data then wrap it by transforming it by a function for further parsing.
433+
It works similarly to a buffer where it reads a block of data. But instead of returning the buffer it
434434
will pass it on to a parser for further processing.
435-
- `wrapper` - (Required) A function taking a buffer and returning a buffer (`(x: Buffer | Uint8Array ) => Buffer | Uint8Array`)
435+
- `wrapper` - (Required) A function taking a buffer and returning a buffer (`(x: Buffer | Uint8Array ) => Buffer | Uint8Array`)
436436
transforming the buffer into a buffer expected by `type`.
437437
- `type` - (Required) A `Parser` object to parse the result of wrapper.
438438
- `length ` - (either `length` or `readUntil` is required) Length of the
@@ -455,11 +455,11 @@ var textParser = Parser.start()
455455
var mainParser = Parser.start()
456456
// Read length of the data to wrap
457457
.uint32le('length')
458-
// Read wrapped data
458+
// Read wrapped data
459459
.wrapped('wrappedData', {
460460
// Indicate how much data to read, like buffer()
461461
length: 'length',
462-
// Define function to pre-process the data buffer
462+
// Define function to pre-process the data buffer
463463
wrapper: function (buffer) {
464464
// E.g. decompress data and return it for further parsing
465465
return zlib.inflateRawSync(buffer);

0 commit comments

Comments
 (0)