Skip to content

Commit

Permalink
Fix an into bits example (#12668)
Browse files Browse the repository at this point in the history
# 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.
  • Loading branch information
IanManske committed Apr 26, 2024
1 parent f234a0e commit 79ebf0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/nu-cmd-extra/src/extra/bits/into.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
)),
Expand Down

0 comments on commit 79ebf0c

Please sign in to comment.