summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcitrusmunch <citrusmunch@users.noreply.github.com>2023-11-20 17:59:13 -0500
committerGitHub <noreply@github.com>2023-11-20 23:59:13 +0100
commit08f5db5c62d7c4a698fea0a95cd0029915e5de9c (patch)
tree8d56e7ad450502f92daaa45f25349d168126f2ea
parent1eefe3e42b40ef8a2cd7cc4f29540aff11974165 (diff)
docs(cli/args/flags.rs): Update dead link for `run` example (#21277)
The `deno run` example in the help output uses https://deno.land/std/examples/welcome.ts which no longer exists. Replacing with https://examples.deno.land/hello-world.ts Signed-off-by: citrusmunch <citrusmunch@users.noreply.github.com>
-rw-r--r--cli/args/flags.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/args/flags.rs b/cli/args/flags.rs
index 6d1e41a19..d8d761da6 100644
--- a/cli/args/flags.rs
+++ b/cli/args/flags.rs
@@ -810,7 +810,7 @@ To start the REPL:
To execute a script:
- deno run https://deno.land/std/examples/welcome.ts
+ deno run https://examples.deno.land/hello-world.ts
To evaluate code in the shell:
@@ -2009,7 +2009,7 @@ fn run_subcommand() -> Command {
By default all programs are run in sandbox without access to disk, network or
ability to spawn subprocesses.
- deno run https://deno.land/std/examples/welcome.ts
+ deno run https://examples.deno.land/hello-world.ts
Grant all permissions:
@@ -2025,7 +2025,7 @@ Grant permission to read allow-listed files from disk:
Specifying the filename '-' to read the file from stdin.
- curl https://deno.land/std/examples/welcome.ts | deno run -",
+ curl https://examples.deno.land/hello-world.ts | deno run -",
)
}