From 33ae71f300f1556f85e5df8f5aabb4ba18e452fc Mon Sep 17 00:00:00 2001 From: Sergio Morales Date: Sun, 6 Oct 2024 15:50:11 +0200 Subject: [PATCH] Fix example for hide-env (#14013) # Description Fix example in documentation for hide-env # User-Facing Changes # Tests + Formatting # After Submitting --- crates/nu-cmd-lang/src/core_commands/hide_env.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-cmd-lang/src/core_commands/hide_env.rs b/crates/nu-cmd-lang/src/core_commands/hide_env.rs index adc430b168..3d47a84a36 100644 --- a/crates/nu-cmd-lang/src/core_commands/hide_env.rs +++ b/crates/nu-cmd-lang/src/core_commands/hide_env.rs @@ -63,7 +63,7 @@ impl Command for HideEnv { fn examples(&self) -> Vec { vec![Example { description: "Hide an environment variable", - example: r#"$env.HZ_ENV_ABC = 1; hide-env HZ_ENV_ABC; 'HZ_ENV_ABC' in (env).name"#, + example: r#"$env.HZ_ENV_ABC = 1; hide-env HZ_ENV_ABC; 'HZ_ENV_ABC' in $env"#, result: Some(Value::test_bool(false)), }] }