summaryrefslogtreecommitdiff
path: root/std/media_types
diff options
context:
space:
mode:
Diffstat (limited to 'std/media_types')
-rw-r--r--std/media_types/README.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/std/media_types/README.md b/std/media_types/README.md
index 1be0e52bf..481c56b84 100644
--- a/std/media_types/README.md
+++ b/std/media_types/README.md
@@ -23,10 +23,10 @@ lookup("folder/.htaccess"); // undefined
### `contentType(type)`
-Return a full `Content-Type` header value for a given content type or
-extension. When an extension is used, `lookup()` is used to resolve the
-content type first. A default charset is added if not present. The
-function will return `undefined` if the content type cannot be resolved:
+Return a full `Content-Type` header value for a given content type or extension.
+When an extension is used, `lookup()` is used to resolve the content type first.
+A default charset is added if not present. The function will return `undefined`
+if the content type cannot be resolved:
```ts
import { contentType } from "https://deno.land/std/media_types/mod.ts";
@@ -53,8 +53,8 @@ extension("application/octet-stream"); // "bin"
### `charset(type)`
-Lookup the implied default charset for a given content type. If the content
-type cannot be resolved, `undefined` is returned:
+Lookup the implied default charset for a given content type. If the content type
+cannot be resolved, `undefined` is returned:
```ts
import { charset } from "https://deno.land/std/media_types/mod.ts";