Skip to content

Fix to yaml examples 0115 - #2228

Open
maxim-uvarov wants to merge 2 commits into
nushell:mainfrom
maxim-uvarov:fix-to-yaml-examples-0115
Open

Fix to yaml examples 0115#2228
maxim-uvarov wants to merge 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.
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.

2 participants