From ff5cb6f1ffbc4c314749e6bf31e9cc1966147743 Mon Sep 17 00:00:00 2001 From: Antoine Stevan <44101798+amtoine@users.noreply.github.com> Date: Wed, 5 Jun 2024 02:02:17 +0200 Subject: [PATCH] complete the type of `--error-label` in `std assert` commands (#12998) i was looking at the website documentation of `std assert` and i noticed one thing - the `--error-label` argument of `assert` and `assert not` was just a `record` -> now it's that complete type `record>` --- crates/nu-std/std/assert.nu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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