Skip to content

Commit 963218e

Browse files
committed
💪 Use explicit version or relative path in examples
To avoid unwilling module download
1 parent 9b18cec commit 963218e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

denops_std/bufname/bufname.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const exprPattern = /^(.*?)(?:;(.*?))?(?:#(.*))?$/;
7878
* percent-encoded characters. It's required to distinguish `params` and or `fragment`.
7979
*
8080
* ```typescript
81-
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
81+
* import { assertEquals } from "https://deno.land/std@0.188.0/testing/asserts.ts";
8282
* import { format } from "../bufname/mod.ts";
8383
*
8484
* assertEquals(
@@ -130,7 +130,7 @@ const exprPattern = /^(.*?)(?:;(.*?))?(?:#(.*))?$/;
130130
* constructing a buffer name from a real path. For example
131131
*
132132
* ```typescript
133-
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
133+
* import { assertEquals } from "https://deno.land/std@0.188.0/testing/asserts.ts";
134134
* import * as path from "https://deno.land/std/path/mod.ts";
135135
* import { format } from "../bufname/mod.ts";
136136
*
@@ -170,7 +170,7 @@ export function format(
170170
* For example, if it contains unusable characters ("<>|?*).
171171
*
172172
* ```typescript
173-
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
173+
* import { assertEquals } from "https://deno.land/std@0.188.0/testing/asserts.ts";
174174
* import { parse } from "../bufname/mod.ts";
175175
*
176176
* assertEquals(
@@ -224,7 +224,7 @@ export function format(
224224
* was constructed from a real path. For example
225225
*
226226
* ```typescript
227-
* import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
227+
* import { assertEquals } from "https://deno.land/std@0.188.0/testing/asserts.ts";
228228
* import * as path from "https://deno.land/std/path/mod.ts";
229229
* import { parse } from "../bufname/mod.ts";
230230
*

denops_std/mod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* import * as vars from "./variable/mod.ts";
1313
* import * as helper from "./helper/mod.ts";
1414
*
15-
* import * as unknownutil from "https://deno.land/x/unknownutil/mod.ts";
15+
* import * as unknownutil from "https://deno.land/x/unknownutil@v2.1.1/mod.ts";
1616
*
1717
* export async function main(denops: Denops): Promise<void> {
1818
* denops.dispatcher = {

denops_std/option/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ When a Boolean option was specified in Getter, 0 or 1 was returned instead of
1414
Boolean, but since v5, Boolean has been returned.
1515

1616
```ts
17-
import type { Denops } from "https://deno.land/x/denops_std/mod.ts";
18-
import * as op from "https://deno.land/x/denops_std/option/mod.ts";
17+
import type { Denops } from "../mod.ts";
18+
import * as op from "./mod.ts";
1919

2020
export async function test(denops: Denops) {
2121
await denops.cmd("setglobal autoread");

0 commit comments

Comments
 (0)