doc: unify number/integer types in buffer.md

PR-URL: https://github.com/nodejs/node/pull/27030
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
pull/27037/head
Vse Mozhet Byt 2019-03-31 11:08:16 +03:00
parent 3c11f64e35
commit 2f338f3fa1
1 changed files with 3 additions and 3 deletions

View File

@ -867,11 +867,11 @@ A `TypeError` will be thrown if `buffer` is not a `Buffer`.
added: v8.2.0
-->
* `object` {Object} An object supporting `Symbol.toPrimitive` or `valueOf()`
* `offsetOrEncoding` {number|string} A byte-offset or encoding, depending on
* `object` {Object} An object supporting `Symbol.toPrimitive` or `valueOf()`.
* `offsetOrEncoding` {integer|string} A byte-offset or encoding, depending on
the value returned either by `object.valueOf()` or
`object[Symbol.toPrimitive]()`.
* `length` {number} A length, depending on the value returned either by
* `length` {integer} A length, depending on the value returned either by
`object.valueOf()` or `object[Symbol.toPrimitive]()`.
For objects whose `valueOf()` function returns a value not strictly equal to