diff --git a/crates/nu-command/src/env/with_env.rs b/crates/nu-command/src/env/with_env.rs index 658a3ad9cc..80569ec2ee 100644 --- a/crates/nu-command/src/env/with_env.rs +++ b/crates/nu-command/src/env/with_env.rs @@ -63,8 +63,8 @@ impl Command for WithEnv { result: Some(Value::test_string("Z")), }, Example { - description: "Set by row(e.g. `open x.json` or `from json`)", - example: r#"'{"X":"Y","W":"Z"}'|from json|with-env $in { [$env.X $env.W] }"#, + description: "Set by key-value record", + example: r#"with-env {X: "Y", W: "Z"} { [$env.X $env.W] }"#, result: None, }, ]