Skip to content

Commit 1aeb24f

Browse files
committed
Address nits
1 parent 79131d7 commit 1aeb24f

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

doc/api/buffer.markdown

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,7 +1398,7 @@ console.log(`${len} bytes: ${buf.toString('utf8', 0, len)}`);
13981398
Writes `value` to the Buffer at the specified `offset` with specified endian
13991399
format (`writeDoubleBE()` writes big endian, `writeDoubleLE()` writes little
14001400
endian). The `value` argument *should* be a valid 64-bit double. Behavior is
1401-
unspecified if `value` is anything other than a 64-bit double.
1401+
not defined when `value` is anything other than a 64-bit double.
14021402

14031403
Set `noAssert` to true to skip validation of `value` and `offset`. This means
14041404
that `value` may be too large for the specific function and `offset` may be
@@ -1430,7 +1430,7 @@ console.log(buf);
14301430

14311431
Writes `value` to the Buffer at the specified `offset` with specified endian
14321432
format (`writeFloatBE()` writes big endian, `writeFloatLE()` writes little
1433-
endian). Behavior is unspecified if `value` is anything other than a 32-bit
1433+
endian). Behavior is not defined when `value` is anything other than a 32-bit
14341434
float.
14351435

14361436
Set `noAssert` to true to skip validation of `value` and `offset`. This means
@@ -1461,7 +1461,7 @@ console.log(buf);
14611461
* Return: {Number} The offset plus the number of written bytes
14621462

14631463
Writes `value` to the Buffer at the specified `offset`. The `value` should be a
1464-
valid signed 8-bit integer. Behavior is unspecified if `value` is anything
1464+
valid signed 8-bit integer. Behavior is not defined when `value` is anything
14651465
other than a signed 8-bit integer.
14661466

14671467
Set `noAssert` to true to skip validation of `value` and `offset`. This means
@@ -1490,7 +1490,7 @@ console.log(buf);
14901490
Writes `value` to the Buffer at the specified `offset` with specified endian
14911491
format (`writeInt16BE()` writes big endian, `writeInt16LE()` writes little
14921492
endian). The `value` should be a valid signed 16-bit integer. Behavior is
1493-
unspecified if `value` is anything other than a signed 16-bit integer.
1493+
not defined when `value` is anything other than a signed 16-bit integer.
14941494

14951495
Set `noAssert` to true to skip validation of `value` and `offset`. This means
14961496
that `value` may be too large for the specific function and `offset` may be
@@ -1518,7 +1518,7 @@ console.log(buf);
15181518
Writes `value` to the Buffer at the specified `offset` with specified endian
15191519
format (`writeInt32BE()` writes big endian, `writeInt32LE()` writes little
15201520
endian). The `value` should be a valid signed 32-bit integer. Behavior is
1521-
unspecified if `value` is anything other than a signed 32-bit integer.
1521+
not defined when `value` is anything other than a signed 32-bit integer.
15221522

15231523
Set `noAssert` to true to skip validation of `value` and `offset`. This means
15241524
that `value` may be too large for the specific function and `offset` may be
@@ -1564,7 +1564,7 @@ that `value` may be too large for the specific function and `offset` may be
15641564
beyond the end of the Buffer leading to the values being silently dropped. This
15651565
should not be used unless you are certain of correctness.
15661566

1567-
Behavior is unspecified if `value` is anything other than an integer.
1567+
Behavior is not defined when `value` is anything other than an integer.
15681568

15691569
### buf.writeUInt8(value, offset[, noAssert])
15701570

@@ -1574,7 +1574,7 @@ Behavior is unspecified if `value` is anything other than an integer.
15741574
* Return: {Number} The offset plus the number of written bytes
15751575

15761576
Writes `value` to the Buffer at the specified `offset`. The `value` should be a
1577-
valid unsigned 8-bit integer. Behavior is unspecified if `value` is anything
1577+
valid unsigned 8-bit integer. Behavior is not defined when `value` is anything
15781578
other than an unsigned 8-bit integer.
15791579

15801580
Set `noAssert` to true to skip validation of `value` and `offset`. This means
@@ -1606,7 +1606,7 @@ console.log(buf);
16061606
Writes `value` to the Buffer at the specified `offset` with specified endian
16071607
format (`writeUInt16BE()` writes big endian, `writeUInt16LE()` writes little
16081608
endian). The `value` should be a valid unsigned 16-bit integer. Behavior is
1609-
unspecified if `value` is anything other than an unsigned 16-bit integer.
1609+
not defined when `value` is anything other than an unsigned 16-bit integer.
16101610

16111611
Set `noAssert` to true to skip validation of `value` and `offset`. This means
16121612
that `value` may be too large for the specific function and `offset` may be
@@ -1641,7 +1641,7 @@ console.log(buf);
16411641
Writes `value` to the Buffer at the specified `offset` with specified endian
16421642
format (`writeUInt32BE()` writes big endian, `writeUInt32LE()` writes little
16431643
endian). The `value` should be a valid unsigned 32-bit integer. Behavior is
1644-
unspecified if `value` is anything other than an unsigned 32-bit integer.
1644+
not defined when `value` is anything other than an unsigned 32-bit integer.
16451645

16461646
Set `noAssert` to true to skip validation of `value` and `offset`. This means
16471647
that `value` may be too large for the specific function and `offset` may be
@@ -1687,7 +1687,7 @@ that `value` may be too large for the specific function and `offset` may be
16871687
beyond the end of the Buffer leading to the values being silently dropped. This
16881688
should not be used unless you are certain of correctness.
16891689

1690-
Behavior is unspecified if `value` is anything other than an unsigned integer.
1690+
Behavior is not defined when `value` is anything other than an unsigned integer.
16911691

16921692
## buffer.INSPECT_MAX_BYTES
16931693

0 commit comments

Comments
 (0)