summaryrefslogtreecommitdiff
path: root/std/examples
diff options
context:
space:
mode:
Diffstat (limited to 'std/examples')
-rwxr-xr-xstd/examples/gist.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/examples/gist.ts b/std/examples/gist.ts
index c41b9b98e..fbe4384e1 100755
--- a/std/examples/gist.ts
+++ b/std/examples/gist.ts
@@ -7,7 +7,7 @@ function pathBase(p: string): string {
return parts[parts.length - 1];
}
-const token = Deno.env()["GIST_TOKEN"];
+const token = Deno.env.get("GIST_TOKEN");
if (!token) {
console.error("GIST_TOKEN environmental variable not set.");
console.error("Get a token here: https://github.com/settings/tokens");