From e18a0e8087834c0d44d82c9dd9d2ac8a8c1a62d4 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Sun, 31 Mar 2019 11:08:16 +0300 Subject: [PATCH] doc: unify number/integer types in buffer.md PR-URL: https://github.com/nodejs/node/pull/27030 Reviewed-By: Luigi Pinca Reviewed-By: Ruben Bridgewater Signed-off-by: Beth Griggs --- doc/api/buffer.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/buffer.md b/doc/api/buffer.md index d1e1357088d1c9..969668dd7a977a 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -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