From 8b35239bce807e30a1ad7610b33c98dbdc03cfd8 Mon Sep 17 00:00:00 2001 From: pwygab <88221256+merelymyself@users.noreply.github.com> Date: Mon, 25 Jul 2022 16:52:16 +0800 Subject: [PATCH] remove misleading example from `source` (#6118) --- crates/nu-command/src/core_commands/source.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/crates/nu-command/src/core_commands/source.rs b/crates/nu-command/src/core_commands/source.rs index 1a407108e4..885495cd73 100644 --- a/crates/nu-command/src/core_commands/source.rs +++ b/crates/nu-command/src/core_commands/source.rs @@ -69,11 +69,6 @@ impl Command for Source { example: r#"source ./foo.nu; say-hi"#, result: None, }, - Example { - description: "Runs foo.nu in current context and call the `main` command automatically, suppose foo.nu has content: `def main [] { echo 'Hi!' }`", - example: r#"source ./foo.nu"#, - result: None, - }, ] } }