Skip to content

Commit 2fb6b18

Browse files
Replace https import with the JSR example (#1380)
Co-authored-by: Bloxs <[email protected]>
1 parent 7fd2b02 commit 2fb6b18

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/scripts/import_export.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ sayHello("World");
3434
import * as util from "./util.ts";
3535
util.sayHello("World");
3636

37-
// Imports don't have to be relative, they can also reference absolute file,
38-
// https, or [JSR](https://jsr.io) URLs.
37+
// Imports don't have to be relative, they can also reference
38+
// absolute file, https, npm, or [JSR](https://jsr.io) URLs.
3939
import { camelCase } from "jsr:@luca/cases@1";
4040
console.log(camelCase("hello world")); // helloWorld
4141

42-
import OpenAI from "https://deno.land/x/[email protected]/mod.ts";
42+
import OpenAI from "jsr:@openai/openai";
4343
const client = new OpenAI();

0 commit comments

Comments
 (0)