diff --git a/crates/nu-std/std/assert.nu b/crates/nu-std/std/assert.nu index 8f9e4cb906..19ca65dd64 100644 --- a/crates/nu-std/std/assert.nu +++ b/crates/nu-std/std/assert.nu @@ -36,7 +36,7 @@ export def main [ condition: bool, # Condition, which should be true message?: string, # Optional error message - --error-label: record # Label for `error make` if you want to create a custom assert + --error-label: record> # Label for `error make` if you want to create a custom assert ] { if $condition { return } error make { @@ -81,7 +81,7 @@ export def main [ export def not [ condition: bool, # Condition, which should be false message?: string, # Optional error message - --error-label: record # Label for `error make` if you want to create a custom assert + --error-label: record> # Label for `error make` if you want to create a custom assert ] { if $condition { let span = (metadata $condition).span