Skip to content

Fix to yaml examples 0115 - #2228

Merged
cptpiepmatz merged 2 commits into
nushell:mainfrom
maxim-uvarov:fix-to-yaml-examples-0115
Aug 17, 2026
Merged

Fix to yaml examples 0115#2228
cptpiepmatz merged 2 commits into
nushell:mainfrom
maxim-uvarov:fix-to-yaml-examples-0115

Conversation

@maxim-uvarov

Copy link
Copy Markdown
Contributor

Fix two to yaml examples in the 0.115.0 release notes
Both snippets do not match what Nushell 0.115.0 actually does.

--non-roundtrip takes a string, so a bare null is parsed as the
null literal and the line fails to parse:

Error: nu::parser::parse_mismatch_with_full_string_msg
  x Parse mismatch: expected string.

Quoting it makes the example run and print null as documented.

The --indent 4 --quote double example showed output with 2-space
indentation and single quotes. The real output on 0.115.0 is:

outer:
    inner: "value"

which is also what the two flags are there to demonstrate.

claude and others added 2 commits August 16, 2026 02:21
Both snippets do not match what Nushell 0.115.0 actually does.

`--non-roundtrip` takes a string, so a bare `null` is parsed as the
`null` literal and the line fails to parse:

    Error: nu::parser::parse_mismatch_with_full_string_msg
      x Parse mismatch: expected string.

Quoting it makes the example run and print `null` as documented.

The `--indent 4 --quote double` example showed output with 2-space
indentation and single quotes. The real output on 0.115.0 is:

    outer:
        inner: "value"

which is also what the two flags are there to demonstrate.

@cptpiepmatz cptpiepmatz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lol, I was writing these examples by hand. Thanks for catching these.

@cptpiepmatz
cptpiepmatz merged commit 15c18c6 into nushell:main Aug 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants