diff options
author | Xin Du (Clark) <clark.duxin@gmail.com> | 2019-05-31 13:39:05 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-05-31 08:39:05 -0400 |
commit | 35cb4d0d136d69a0427f3a1ae5c41bb0015891f0 (patch) | |
tree | 6ba521757247b5e805768549b2e8fd21022a4ba8 /http/file_server.ts | |
parent | 94816457e4599ff32237120bc1e69b875d5c3038 (diff) |
fix typos (denoland/deno_std#469)
Original: https://github.com/denoland/deno_std/commit/2acaf5adb9d043e81710e4badc7a96da5a752ee3
Diffstat (limited to 'http/file_server.ts')
-rwxr-xr-x | http/file_server.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/http/file_server.ts b/http/file_server.ts index 5ef891aa8..54979bf3e 100755 --- a/http/file_server.ts +++ b/http/file_server.ts @@ -86,16 +86,16 @@ function modeToString(isDir: boolean, maybeMode: number | null): string { } function fileLenToString(len: number): string { - const multipler = 1024; + const multiplier = 1024; let base = 1; const suffix = ["B", "K", "M", "G", "T"]; let suffixIndex = 0; - while (base * multipler < len) { + while (base * multiplier < len) { if (suffixIndex >= suffix.length - 1) { break; } - base *= multipler; + base *= multiplier; suffixIndex++; } |