@@ -522,7 +522,7 @@ A `TypeError` will be thrown if `size` is not a number.
522522
523523* ` string ` {String}
524524* ` encoding ` {String} Default: ` 'utf8' `
525- * Return : {Number}
525+ * Returns : {Number}
526526
527527Returns the actual byte length of a string. This is not the same as
528528[ ` String.prototype.length ` ] [ ] since that returns the number of * characters* in
@@ -546,7 +546,7 @@ added: v0.11.13
546546
547547* ` buf1 ` {Buffer}
548548* ` buf2 ` {Buffer}
549- * Return : {Number}
549+ * Returns : {Number}
550550
551551Compares ` buf1 ` to ` buf2 ` typically for the purpose of sorting arrays of
552552Buffers. This is equivalent is calling [ ` buf1.compare(buf2) ` ] [ ] .
@@ -563,7 +563,7 @@ added: v0.7.11
563563
564564* ` list ` {Array} List of Buffer objects to concat
565565* ` totalLength ` {Number} Total length of the Buffers in the list when concatenated
566- * Return : {Buffer}
566+ * Returns : {Buffer}
567567
568568Returns a new Buffer which is the result of concatenating all the Buffers in
569569the ` list ` together.
@@ -692,7 +692,7 @@ A `TypeError` will be thrown if `str` is not a string.
692692### Class Method: Buffer.isBuffer(obj)
693693
694694* ` obj ` {Object}
695- * Return : {Boolean}
695+ * Returns : {Boolean}
696696
697697Returns 'true' if ` obj ` is a Buffer.
698698
@@ -702,7 +702,7 @@ added: v0.9.1
702702-->
703703
704704* ` encoding ` {String} The encoding string to test
705- * Return : {Boolean}
705+ * Returns : {Boolean}
706706
707707Returns true if the ` encoding ` is a valid encoding argument, or false
708708otherwise.
@@ -737,7 +737,7 @@ added: v0.11.13
737737-->
738738
739739* ` otherBuffer ` {Buffer}
740- * Return : {Number}
740+ * Returns : {Number}
741741
742742Compares two Buffer instances and returns a number indicating whether ` buf `
743743comes before, after, or is the same as the ` otherBuffer ` in sort order.
@@ -773,7 +773,7 @@ console.log(buf2.compare(buf3));
773773* ` targetStart ` {Number} Default: 0
774774* ` sourceStart ` {Number} Default: 0
775775* ` sourceEnd ` {Number} Default: ` buffer.length `
776- * Return : {Number} The number of bytes copied.
776+ * Returns : {Number} The number of bytes copied.
777777
778778Copies data from a region of this Buffer to a region in the target Buffer even
779779if the target memory region overlaps with the source.
@@ -815,7 +815,7 @@ console.log(buf.toString());
815815added: v1.1.0
816816-->
817817
818- * Return : {Iterator}
818+ * Returns : {Iterator}
819819
820820Creates and returns an [ iterator] [ ] of ` [index, byte] ` pairs from the Buffer
821821contents.
@@ -840,7 +840,7 @@ added: v1.0.0
840840-->
841841
842842* ` otherBuffer ` {Buffer}
843- * Return : {Boolean}
843+ * Returns : {Boolean}
844844
845845Returns a boolean indicating whether ` this ` and ` otherBuffer ` have exactly the
846846same bytes.
@@ -864,7 +864,7 @@ added: v0.5.0
864864* ` value ` {String|Number}
865865* ` offset ` {Number} Default: 0
866866* ` end ` {Number} Default: ` buffer.length `
867- * Return : {Buffer}
867+ * Returns : {Buffer}
868868
869869Fills the Buffer with the specified value. If the ` offset ` and ` end ` are not
870870given it will fill the entire Buffer. The method returns a reference to the
@@ -884,7 +884,7 @@ added: v1.5.0
884884* ` value ` {String|Buffer|Number}
885885* ` byteOffset ` {Number} Default: 0
886886* ` encoding ` {String} Default: ` 'utf8' `
887- * Return : {Number}
887+ * Returns : {Number}
888888
889889Operates similar to [ ` Array#indexOf() ` ] [ ] in that it returns either the
890890starting index position of ` value ` in Buffer or ` -1 ` if the Buffer does not
@@ -922,7 +922,7 @@ utf16Buffer.indexOf('\u03a3', -4, 'ucs2');
922922added: v1.1.0
923923-->
924924
925- * Return : {Iterator}
925+ * Returns : {Iterator}
926926
927927Creates and returns an [ iterator] [ ] of Buffer keys (indices).
928928
@@ -980,7 +980,7 @@ console.log(buf.length);
980980
981981* ` offset ` {Number} ` 0 <= offset <= buf.length - 8 `
982982* ` noAssert ` {Boolean} Default: false
983- * Return : {Number}
983+ * Returns : {Number}
984984
985985Reads a 64-bit double from the Buffer at the specified ` offset ` with specified
986986endian format (` readDoubleBE() ` returns big endian, ` readDoubleLE() ` returns
@@ -1008,7 +1008,7 @@ buf.readDoubleLE(1, true); // Warning: reads passed end of buffer!
10081008
10091009* ` offset ` {Number} ` 0 <= offset <= buf.length - 4 `
10101010* ` noAssert ` {Boolean} Default: false
1011- * Return : {Number}
1011+ * Returns : {Number}
10121012
10131013Reads a 32-bit float from the Buffer at the specified ` offset ` with specified
10141014endian format (` readFloatBE() ` returns big endian, ` readFloatLE() ` returns
@@ -1035,7 +1035,7 @@ buf.readFloatLE(1, true); // Warning: reads passed end of buffer!
10351035
10361036* ` offset ` {Number} ` 0 <= offset <= buf.length - 1 `
10371037* ` noAssert ` {Boolean} Default: false
1038- * Return : {Number}
1038+ * Returns : {Number}
10391039
10401040Reads a signed 8-bit integer from the Buffer at the specified ` offset ` .
10411041
@@ -1058,7 +1058,7 @@ buf.readInt8(1);
10581058
10591059* ` offset ` {Number} ` 0 <= offset <= buf.length - 2 `
10601060* ` noAssert ` {Boolean} Default: false
1061- * Return : {Number}
1061+ * Returns : {Number}
10621062
10631063Reads a signed 16-bit integer from the Buffer at the specified ` offset ` with
10641064the specified endian format (` readInt16BE() ` returns big endian,
@@ -1083,7 +1083,7 @@ buf.readInt16LE(1);
10831083
10841084* ` offset ` {Number} ` 0 <= offset <= buf.length - 4 `
10851085* ` noAssert ` {Boolean} Default: false
1086- * Return : {Number}
1086+ * Returns : {Number}
10871087
10881088Reads a signed 32-bit integer from the Buffer at the specified ` offset ` with
10891089the specified endian format (` readInt32BE() ` returns big endian,
@@ -1114,7 +1114,7 @@ added: v1.0.0
11141114* ` offset ` {Number} ` 0 <= offset <= buf.length - byteLength `
11151115* ` byteLength ` {Number} ` 0 < byteLength <= 6 `
11161116* ` noAssert ` {Boolean} Default: false
1117- * Return : {Number}
1117+ * Returns : {Number}
11181118
11191119Reads ` byteLength ` number of bytes from the Buffer at the specified ` offset `
11201120and interprets the result as a two's complement signed value. Supports up to 48
@@ -1138,7 +1138,7 @@ Setting `noAssert` to `true` skips validation of the `offset`. This allows the
11381138
11391139* ` offset ` {Number} ` 0 <= offset <= buf.length - 1 `
11401140* ` noAssert ` {Boolean} Default: false
1141- * Return : {Number}
1141+ * Returns : {Number}
11421142
11431143Reads an unsigned 8-bit integer from the Buffer at the specified ` offset ` .
11441144
@@ -1159,7 +1159,7 @@ buf.readUInt8(1);
11591159
11601160* ` offset ` {Number} ` 0 <= offset <= buf.length - 2 `
11611161* ` noAssert ` {Boolean} Default: false
1162- * Return : {Number}
1162+ * Returns : {Number}
11631163
11641164Reads an unsigned 16-bit integer from the Buffer at the specified ` offset ` with
11651165specified endian format (` readUInt16BE() ` returns big endian,
@@ -1192,7 +1192,7 @@ buf.readUInt16LE(2);
11921192
11931193* ` offset ` {Number} ` 0 <= offset <= buf.length - 4 `
11941194* ` noAssert ` {Boolean} Default: false
1195- * Return : {Number}
1195+ * Returns : {Number}
11961196
11971197Reads an unsigned 32-bit integer from the Buffer at the specified ` offset ` with
11981198specified endian format (` readUInt32BE() ` returns big endian,
@@ -1221,7 +1221,7 @@ added: v1.0.0
12211221* ` offset ` {Number} ` 0 <= offset <= buf.length - byteLength `
12221222* ` byteLength ` {Number} ` 0 < byteLength <= 6 `
12231223* ` noAssert ` {Boolean} Default: false
1224- * Return : {Number}
1224+ * Returns : {Number}
12251225
12261226Reads ` byteLength ` number of bytes from the Buffer at the specified ` offset `
12271227and interprets the result as an unsigned integer. Supports up to 48
@@ -1245,7 +1245,7 @@ Setting `noAssert` to `true` skips validation of the `offset`. This allows the
12451245
12461246* ` start ` {Number} Default: 0
12471247* ` end ` {Number} Default: ` buffer.length `
1248- * Return : {Buffer}
1248+ * Returns : {Buffer}
12491249
12501250Returns a new Buffer that references the same memory as the original, but
12511251offset and cropped by the ` start ` and ` end ` indices.
@@ -1290,7 +1290,7 @@ buf.slice(-5, -2).toString();
12901290* ` encoding ` {String} Default: ` 'utf8' `
12911291* ` start ` {Number} Default: 0
12921292* ` end ` {Number} Default: ` buffer.length `
1293- * Return : {String}
1293+ * Returns : {String}
12941294
12951295Decodes and returns a string from the Buffer data using the specified
12961296character set ` encoding ` .
@@ -1315,7 +1315,7 @@ buf.toString(undefined,0,5);
13151315added: v0.9.2
13161316-->
13171317
1318- * Return : {Object}
1318+ * Returns : {Object}
13191319
13201320Returns a JSON representation of the Buffer instance. [ ` JSON.stringify() ` ] [ ]
13211321implicitly calls this function when stringifying a Buffer instance.
@@ -1344,7 +1344,7 @@ console.log(copy.toString());
13441344added: v1.1.0
13451345-->
13461346
1347- * Return : {Iterator}
1347+ * Returns : {Iterator}
13481348
13491349Creates and returns an [ iterator] [ ] for Buffer values (bytes). This function is
13501350called automatically when the Buffer is used in a ` for..of ` statement.
@@ -1380,7 +1380,7 @@ for (var value of buf) {
13801380* ` offset ` {Number} Default: 0
13811381* ` length ` {Number} Default: ` buffer.length - offset `
13821382* ` encoding ` {String} Default: ` 'utf8' `
1383- * Return : {Number} Numbers of bytes written
1383+ * Returns : {Number} Numbers of bytes written
13841384
13851385Writes ` string ` to the Buffer at ` offset ` using the given ` encoding ` .
13861386The ` length ` parameter is the number of bytes to write. If the Buffer did not
@@ -1401,7 +1401,7 @@ console.log(`${len} bytes: ${buf.toString('utf8', 0, len)}`);
14011401* ` value ` {Number} Bytes to be written to Buffer
14021402* ` offset ` {Number} ` 0 <= offset <= buf.length - 8 `
14031403* ` noAssert ` {Boolean} Default: false
1404- * Return : {Number} The offset plus the number of written bytes
1404+ * Returns : {Number} The offset plus the number of written bytes
14051405
14061406Writes ` value ` to the Buffer at the specified ` offset ` with specified endian
14071407format (` writeDoubleBE() ` writes big endian, ` writeDoubleLE() ` writes little
@@ -1434,7 +1434,7 @@ console.log(buf);
14341434* ` value ` {Number} Bytes to be written to Buffer
14351435* ` offset ` {Number} ` 0 <= offset <= buf.length - 4 `
14361436* ` noAssert ` {Boolean} Default: false
1437- * Return : {Number} The offset plus the number of written bytes
1437+ * Returns : {Number} The offset plus the number of written bytes
14381438
14391439Writes ` value ` to the Buffer at the specified ` offset ` with specified endian
14401440format (` writeFloatBE() ` writes big endian, ` writeFloatLE() ` writes little
@@ -1466,7 +1466,7 @@ console.log(buf);
14661466* ` value ` {Number} Bytes to be written to Buffer
14671467* ` offset ` {Number} ` 0 <= offset <= buf.length - 1 `
14681468* ` noAssert ` {Boolean} Default: false
1469- * Return : {Number} The offset plus the number of written bytes
1469+ * Returns : {Number} The offset plus the number of written bytes
14701470
14711471Writes ` value ` to the Buffer at the specified ` offset ` . The ` value ` should be a
14721472valid signed 8-bit integer. Behavior is not defined when ` value ` is anything
@@ -1493,7 +1493,7 @@ console.log(buf);
14931493* ` value ` {Number} Bytes to be written to Buffer
14941494* ` offset ` {Number} ` 0 <= offset <= buf.length - 2 `
14951495* ` noAssert ` {Boolean} Default: false
1496- * Return : {Number} The offset plus the number of written bytes
1496+ * Returns : {Number} The offset plus the number of written bytes
14971497
14981498Writes ` value ` to the Buffer at the specified ` offset ` with specified endian
14991499format (` writeInt16BE() ` writes big endian, ` writeInt16LE() ` writes little
@@ -1521,7 +1521,7 @@ console.log(buf);
15211521* ` value ` {Number} Bytes to be written to Buffer
15221522* ` offset ` {Number} ` 0 <= offset <= buf.length - 4 `
15231523* ` noAssert ` {Boolean} Default: false
1524- * Return : {Number} The offset plus the number of written bytes
1524+ * Returns : {Number} The offset plus the number of written bytes
15251525
15261526Writes ` value ` to the Buffer at the specified ` offset ` with specified endian
15271527format (` writeInt32BE() ` writes big endian, ` writeInt32LE() ` writes little
@@ -1553,7 +1553,7 @@ added: v1.0.0
15531553* ` offset ` {Number} ` 0 <= offset <= buf.length - byteLength `
15541554* ` byteLength ` {Number} ` 0 < byteLength <= 6 `
15551555* ` noAssert ` {Boolean} Default: false
1556- * Return : {Number} The offset plus the number of written bytes
1556+ * Returns : {Number} The offset plus the number of written bytes
15571557
15581558Writes ` value ` to the Buffer at the specified ` offset ` and ` byteLength ` .
15591559Supports up to 48 bits of accuracy. For example:
@@ -1582,7 +1582,7 @@ Behavior is not defined when `value` is anything other than an integer.
15821582* ` value ` {Number} Bytes to be written to Buffer
15831583* ` offset ` {Number} ` 0 <= offset <= buf.length - 1 `
15841584* ` noAssert ` {Boolean} Default: false
1585- * Return : {Number} The offset plus the number of written bytes
1585+ * Returns : {Number} The offset plus the number of written bytes
15861586
15871587Writes ` value ` to the Buffer at the specified ` offset ` . The ` value ` should be a
15881588valid unsigned 8-bit integer. Behavior is not defined when ` value ` is anything
@@ -1612,7 +1612,7 @@ console.log(buf);
16121612* ` value ` {Number} Bytes to be written to Buffer
16131613* ` offset ` {Number} ` 0 <= offset <= buf.length - 2 `
16141614* ` noAssert ` {Boolean} Default: false
1615- * Return : {Number} The offset plus the number of written bytes
1615+ * Returns : {Number} The offset plus the number of written bytes
16161616
16171617Writes ` value ` to the Buffer at the specified ` offset ` with specified endian
16181618format (` writeUInt16BE() ` writes big endian, ` writeUInt16LE() ` writes little
@@ -1647,7 +1647,7 @@ console.log(buf);
16471647* ` value ` {Number} Bytes to be written to Buffer
16481648* ` offset ` {Number} ` 0 <= offset <= buf.length - 4 `
16491649* ` noAssert ` {Boolean} Default: false
1650- * Return : {Number} The offset plus the number of written bytes
1650+ * Returns : {Number} The offset plus the number of written bytes
16511651
16521652Writes ` value ` to the Buffer at the specified ` offset ` with specified endian
16531653format (` writeUInt32BE() ` writes big endian, ` writeUInt32LE() ` writes little
@@ -1681,7 +1681,7 @@ console.log(buf);
16811681* ` offset ` {Number} ` 0 <= offset <= buf.length - byteLength `
16821682* ` byteLength ` {Number} ` 0 < byteLength <= 6 `
16831683* ` noAssert ` {Boolean} Default: false
1684- * Return : {Number} The offset plus the number of written bytes
1684+ * Returns : {Number} The offset plus the number of written bytes
16851685
16861686Writes ` value ` to the Buffer at the specified ` offset ` and ` byteLength ` .
16871687Supports up to 48 bits of accuracy. For example:
0 commit comments