From 10b2b453d0d0bcd59769dd100891eb0414bc6411 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 4 Jan 2026 10:26:41 +0100 Subject: [PATCH] Fix typos discovered by codespell --- index.d.ts | 2 +- test/basic.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index e9fed80..d46601b 100644 --- a/index.d.ts +++ b/index.d.ts @@ -166,7 +166,7 @@ declare module "safe-buffer" { * @param size count of octets to allocate. * @param fill if specified, buffer will be initialized by calling buf.fill(fill). * If parameter is omitted, buffer will be filled with zeros. - * @param encoding encoding used for call to buf.fill while initalizing + * @param encoding encoding used for call to buf.fill while initializing */ static alloc(size: number, fill?: string | Buffer | number, encoding?: string): Buffer; /** diff --git a/test/basic.js b/test/basic.js index b19578f..d9510d1 100644 --- a/test/basic.js +++ b/test/basic.js @@ -42,7 +42,7 @@ test('SafeBuffer.alloc(number) returns zeroed-out memory', function (t) { }) test('SafeBuffer.allocUnsafe(number)', function (t) { - var buf = SafeBuffer.allocUnsafe(100) // unitialized memory + var buf = SafeBuffer.allocUnsafe(100) // uninitialized memory t.equal(buf.length, 100) t.equal(SafeBuffer.isBuffer(buf), true) t.equal(Buffer.isBuffer(buf), true)