Skip to content

Commit

Permalink
docs(json): correct examples (#3260)
Browse files Browse the repository at this point in the history
  • Loading branch information
iuioiua authored Mar 17, 2023
1 parent 847720d commit 6b1d49d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions encoding/json/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export {
* ```ts
* import { ConcatenatedJsonParseStream } from "https://deno.land/std@$STD_VERSION/encoding/json/stream.ts";
*
* const url = "https://deno.land/std@$STD_VERSION/encoding/testdata/json/test.concatenated-json";
* const url = "https://deno.land/std@$STD_VERSION/json/testdata/test.concatenated-json";
* const { body } = await fetch(url);
*
* const readable = body!
Expand All @@ -61,7 +61,7 @@ export {
* import { TextLineStream } from "https://deno.land/std@$STD_VERSION/streams/text_line_stream.ts";
* import { JsonParseStream } from "https://deno.land/std@$STD_VERSION/encoding/json/stream.ts";
*
* const url = "https://deno.land/std@$STD_VERSION/encoding/testdata/json/test.jsonl";
* const url = "https://deno.land/std@$STD_VERSION/json/testdata/test.jsonl";
* const { body } = await fetch(url);
*
* const readable = body!
Expand All @@ -81,7 +81,7 @@ export {
* import { JsonParseStream } from "https://deno.land/std@$STD_VERSION/encoding/json/stream.ts";
*
* const url =
* "https://deno.land/std@$STD_VERSION/encoding/testdata/json/test.json-seq";
* "https://deno.land/std@$STD_VERSION/json/testdata/test.json-seq";
* const { body } = await fetch(url);
*
* const delimiter = "\x1E";
Expand Down
2 changes: 1 addition & 1 deletion json/concatenated_json_parse_stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function isBrankChar(char: string) {
* ```ts
* import { ConcatenatedJsonParseStream } from "https://deno.land/std@$STD_VERSION/json/concatenated_json_parse_stream.ts";
*
* const url = "https://deno.land/std@$STD_VERSION/encoding/testdata/json/test.concatenated-json";
* const url = "https://deno.land/std@$STD_VERSION/json/testdata/test.concatenated-json";
* const { body } = await fetch(url);
*
* const readable = body!
Expand Down
4 changes: 2 additions & 2 deletions json/json_parse_stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function isBrankString(str: string) {
* import { TextLineStream } from "https://deno.land/std@$STD_VERSION/streams/text_line_stream.ts";
* import { JsonParseStream } from "https://deno.land/std@$STD_VERSION/json/json_parse_stream.ts";
*
* const url = "https://deno.land/std@$STD_VERSION/encoding/testdata/json/test.jsonl";
* const url = "https://deno.land/std@$STD_VERSION/json/testdata/test.jsonl";
* const { body } = await fetch(url);
*
* const readable = body!
Expand All @@ -39,7 +39,7 @@ function isBrankString(str: string) {
* import { JsonParseStream } from "https://deno.land/std@$STD_VERSION/json/json_parse_stream.ts";
*
* const url =
* "https://deno.land/std@$STD_VERSION/encoding/testdata/json/test.json-seq";
* "https://deno.land/std@$STD_VERSION/json/testdata/test.json-seq";
* const { body } = await fetch(url);
*
* const delimiter = "\x1E";
Expand Down

0 comments on commit 6b1d49d

Please sign in to comment.