From b8bc24d167f2e19482d9dc6d367876c361abf4ea Mon Sep 17 00:00:00 2001 From: Anh Hong Date: Fri, 11 Dec 2020 02:45:45 +0700 Subject: chore: fixed various misspellings and other typos (#8691) --- std/encoding/binary.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'std/encoding/binary.ts') diff --git a/std/encoding/binary.ts b/std/encoding/binary.ts index f4918e750..f66fb61aa 100644 --- a/std/encoding/binary.ts +++ b/std/encoding/binary.ts @@ -193,7 +193,7 @@ export function putVarbig( return sizeof(o.dataType); } -/** Decodes a number from `r`, comsuming `sizeof(o.dataType)` bytes. If less than `sizeof(o.dataType)` bytes were read, throws `Deno.errors.unexpectedEof`. +/** Decodes a number from `r`, consuming `sizeof(o.dataType)` bytes. If less than `sizeof(o.dataType)` bytes were read, throws `Deno.errors.unexpectedEof`. * * `o.dataType` defaults to `"int32"`. */ export async function readVarnum( @@ -205,7 +205,7 @@ export async function readVarnum( return varnum(scratch, o) as number; } -/** Decodes a bigint from `r`, comsuming `sizeof(o.dataType)` bytes. If less than `sizeof(o.dataType)` bytes were read, throws `Deno.errors.unexpectedEof`. +/** Decodes a bigint from `r`, consuming `sizeof(o.dataType)` bytes. If less than `sizeof(o.dataType)` bytes were read, throws `Deno.errors.unexpectedEof`. * * `o.dataType` defaults to `"int64"`. */ export async function readVarbig( -- cgit v1.2.3