summaryrefslogtreecommitdiff
path: root/std/encoding/binary.ts
diff options
context:
space:
mode:
authorAnh Hong <hong4rc@gmail.com>2020-12-11 02:45:45 +0700
committerGitHub <noreply@github.com>2020-12-11 06:45:45 +1100
commitb8bc24d167f2e19482d9dc6d367876c361abf4ea (patch)
tree5e46858514914eed698d1c941fe8593547e93ed4 /std/encoding/binary.ts
parentfd9b0202c1bb0e83183fd0a53d8b1303612a5e31 (diff)
chore: fixed various misspellings and other typos (#8691)
Diffstat (limited to 'std/encoding/binary.ts')
-rw-r--r--std/encoding/binary.ts4
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(