From: Peter Newman Date: Fri, 7 Aug 2020 11:39:12 +0000 (+0100) Subject: Fix some typos X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=bb43910fbcc7a5de44d2454f29d9e93cc540e32e;p=buffer.git Fix some typos --- 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