From 35cb4d0d136d69a0427f3a1ae5c41bb0015891f0 Mon Sep 17 00:00:00 2001 From: "Xin Du (Clark)" Date: Fri, 31 May 2019 13:39:05 +0100 Subject: fix typos (denoland/deno_std#469) Original: https://github.com/denoland/deno_std/commit/2acaf5adb9d043e81710e4badc7a96da5a752ee3 --- datetime/README.md | 2 +- http/README.md | 4 ++-- http/file_server.ts | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/datetime/README.md b/datetime/README.md index 470aba651..6317ff87e 100644 --- a/datetime/README.md +++ b/datetime/README.md @@ -1,6 +1,6 @@ # datetime -Simple helper to help parse date strings into `Date`, with additionnal functions. +Simple helper to help parse date strings into `Date`, with additional functions. ## Usage diff --git a/http/README.md b/http/README.md index 0f53dc76b..d359f417a 100644 --- a/http/README.md +++ b/http/README.md @@ -4,7 +4,7 @@ A framework for creating HTTP/HTTPS server. ## Cookie -Helper to manipulate `Cookie` throught `ServerRequest` and `Response`. +Helper to manipulate `Cookie` through `ServerRequest` and `Response`. ```ts import { ServerRequest } from "https://deno.land/std/http/server.ts"; @@ -72,6 +72,6 @@ A small program for serving local files over HTTP. Add the following to your `.bash_profile` -``` +```sh alias file_server="deno run --allow-net https://deno.land/std/http/file_server.ts" ``` 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++; } -- cgit v1.2.3