Skip to content

Commit 2f9c55c

Browse files
committed
chore: fix typo
1 parent 47f69bd commit 2f9c55c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -557,14 +557,14 @@ Strings enclosed in double quotes are safely handled.
557557

558558
```ts
559559
import { parseListFields } from "https://deno.land/x/http_utils@$VERSION/list.ts";
560-
import { assert } from "https://deno.land/std@$VERSION/testing/asserts.ts";
560+
import { assertEquals } from "https://deno.land/std@$VERSION/testing/asserts.ts";
561561

562-
assert(parseListFields("foo , ,bar,charlie"), [
562+
assertEquals(parseListFields("foo , ,bar,charlie"), [
563563
"foo",
564564
"bar",
565565
"charlie",
566566
]);
567-
assert(parseListFields(`"Sat, 04 May 1996", "Wed, 14 Sep 2005"`), [
567+
assertEquals(parseListFields(`"Sat, 04 May 1996", "Wed, 14 Sep 2005"`), [
568568
`"Sat, 04 May 1996"`,
569569
`"Wed, 14 Sep 2005"`,
570570
]);

list.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ import { trim } from "./deps.ts";
99
* @example
1010
* ```ts
1111
* import { parseListFields } from "https://deno.land/x/http_utils@$VERSION/list.ts";
12-
* import { assert } from "https://deno.land/std@$VERSION/testing/asserts.ts";
12+
* import { assertEquals } from "https://deno.land/std@$VERSION/testing/asserts.ts";
1313
*
14-
* assert(parseListFields("foo , ,bar,charlie"), [
14+
* assertEquals(parseListFields("foo , ,bar,charlie"), [
1515
* "foo",
1616
* "bar",
1717
* "charlie",
1818
* ]);
19-
* assert(parseListFields(`"Sat, 04 May 1996", "Wed, 14 Sep 2005"`), [
19+
* assertEquals(parseListFields(`"Sat, 04 May 1996", "Wed, 14 Sep 2005"`), [
2020
* `"Sat, 04 May 1996"`,
2121
* `"Wed, 14 Sep 2005"`,
2222
* ]);

0 commit comments

Comments
 (0)