diff options
Diffstat (limited to 'std/encoding/binary.ts')
-rw-r--r-- | std/encoding/binary.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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( |