From bb43910fbcc7a5de44d2454f29d9e93cc540e32e Mon Sep 17 00:00:00 2001 From: Peter Newman Date: Fri, 7 Aug 2020 12:39:12 +0100 Subject: [PATCH] Fix some typos --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index e87bfaa..7097321 100644 --- a/index.js +++ b/index.js @@ -197,7 +197,7 @@ function alloc (size, fill, encoding) { if (fill !== undefined) { // Only pay attention to encoding if it's a string. This // prevents accidentally sending in a number that would - // be interpretted as a start offset. + // be interpreted as a start offset. return typeof encoding === 'string' ? createBuffer(size).fill(fill, encoding) : createBuffer(size).fill(fill) @@ -490,7 +490,7 @@ function slowToString (encoding, start, end) { return '' } - // Force coersion to uint32. This will also coerce falsey/NaN values to 0. + // Force coercion to uint32. This will also coerce falsey/NaN values to 0. end >>>= 0 start >>>= 0 -- 2.34.1