From 517dc6d39e32e786b6fa0fa365c5397004a84c87 Mon Sep 17 00:00:00 2001 From: Antoine Stevan <44101798+amtoine@users.noreply.github.com> Date: Mon, 1 May 2023 15:18:51 +0200 Subject: [PATCH] pass `std bench` into `table -e` in the example (#9075) cc/ @fdncred # Description in the examples of `std bench` there is an expanded table without explicitely expanding it... this PR adds a `table -e` to the `std bench` call in the example. # User-Facing Changes the help page of `std bench` now does make sense :relieved: # Tests + Formatting - :green_circle: `toolkit fmt` - :green_circle: `toolkit clippy` - :black_circle: `toolkit test` - :black_circle: `toolkit test stdlib` # After Submitting ``` $nothing ``` --- crates/nu-std/lib/mod.nu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-std/lib/mod.nu b/crates/nu-std/lib/mod.nu index 6e77810f4f..2d303c669a 100644 --- a/crates/nu-std/lib/mod.nu +++ b/crates/nu-std/lib/mod.nu @@ -176,7 +176,7 @@ def "from ns" [] { # # # Examples # measure the performance of simple addition -# > std bench { 1 + 2 } -n 10 +# > std bench { 1 + 2 } -n 10 | table -e # ╭───────┬────────────────────╮ # │ mean │ 4µs 956ns │ # │ std │ 4µs 831ns │