From 801b9ec62d94f201e67d053ee90dae0b70e50a42 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Mon, 26 Jun 2023 15:10:27 +0200 Subject: chore: fix typos (#19572) --- ext/node/polyfills/internal/fs/handle.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/node/polyfills/internal/fs') diff --git a/ext/node/polyfills/internal/fs/handle.ts b/ext/node/polyfills/internal/fs/handle.ts index fbe535840..e04e8e7b7 100644 --- a/ext/node/polyfills/internal/fs/handle.ts +++ b/ext/node/polyfills/internal/fs/handle.ts @@ -86,13 +86,13 @@ export class FileHandle extends EventEmitter { ): Promise; write( bufferOrStr: Buffer | string, - offsetOrPotition: number, + offsetOrPosition: number, lengthOrEncoding: number | string, position?: number, ): Promise { if (bufferOrStr instanceof Buffer) { const buffer = bufferOrStr; - const offset = offsetOrPotition; + const offset = offsetOrPosition; const length = lengthOrEncoding; return new Promise((resolve, reject) => { @@ -110,7 +110,7 @@ export class FileHandle extends EventEmitter { }); } else { const str = bufferOrStr; - const position = offsetOrPotition; + const position = offsetOrPosition; const encoding = lengthOrEncoding; return new Promise((resolve, reject) => { -- cgit v1.2.3