From 79ebf0c0a9a7d1f733ebccd0f9a7c3226610dbc3 Mon Sep 17 00:00:00 2001 From: Ian Manske Date: Fri, 26 Apr 2024 00:38:28 +0000 Subject: [PATCH] Fix an `into bits` example (#12668) # Description One example for `into bits` says it uses binary value when it actually uses a filesize. This lead to issue #11412, but I never got around to fixing the example until this PR. --- crates/nu-cmd-extra/src/extra/bits/into.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-cmd-extra/src/extra/bits/into.rs b/crates/nu-cmd-extra/src/extra/bits/into.rs index bcf82b9178..c7fd09b728 100644 --- a/crates/nu-cmd-extra/src/extra/bits/into.rs +++ b/crates/nu-cmd-extra/src/extra/bits/into.rs @@ -64,7 +64,7 @@ impl Command for BitsInto { vec![ Example { description: "convert a binary value into a string, padded to 8 places with 0s", - example: "01b | into bits", + example: "0x[1] | into bits", result: Some(Value::string("00000001", Span::test_data(), )),