tweak upsert help text (#6962)

* tweak upsert help text

* more tweaks
This commit is contained in:
Darren Schroeder 2022-10-31 08:18:11 -05:00 committed by GitHub
parent 412952182f
commit 0b4daa66b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ impl Command for Upsert {
result: Some(Value::List { vals: vec![Value::Record { cols: vec!["project".into(), "authors".into()], vals: vec![Value::test_string("nu"), Value::test_string("Andrés,JT,Yehuda")], span: Span::test_data()}], span: Span::test_data()}),
},
Example {
description: "Upsert a value int a list, updating an existing value",
description: "Upsert an int into a list, updating an existing value based on the index",
example: "[1 2 3] | upsert 0 2",
result: Some(Value::List {
vals: vec![Value::test_int(2), Value::test_int(2), Value::test_int(3)],
@ -74,7 +74,7 @@ impl Command for Upsert {
}),
},
Example {
description: "Upsert a value int a list, inserting a new value",
description: "Upsert an int into a list, inserting a new value based on the index",
example: "[1 2 3] | upsert 3 4",
result: Some(Value::List {
vals: vec![