Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added example of nesting mappings to YAML builder #6097

Merged
merged 2 commits into from Jun 25, 2018
Merged

Added example of nesting mappings to YAML builder #6097

merged 2 commits into from Jun 25, 2018

Conversation

kalinon
Copy link
Contributor

@kalinon kalinon commented May 14, 2018

@@ -14,9 +14,14 @@
# yaml.scalar 1
# yaml.scalar 2
# end
# yaml.scalar "bar"
# yaml.mapping do
# yaml.scalar "foo2"
Copy link
Member

Choose a reason for hiding this comment

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

instead of foo2, bar2 others can be used as in other places in docs: baz, qux.

# end
# end
# string # => "---\nfoo:\n- 1\n- 2\n"
# string # => "---\nfoo:\n- 1\n- 2\nbar:\n foo2: bar2"
Copy link
Member

Choose a reason for hiding this comment

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

a final \n is missing.

@kalinon
Copy link
Contributor Author

kalinon commented Jun 21, 2018

@bcardiff thanks for the feedback. updated.

@RX14 RX14 added this to the 0.25.1 milestone Jun 24, 2018
@RX14 RX14 requested a review from bcardiff June 24, 2018 12:56
@RX14 RX14 merged commit 792d421 into crystal-lang:master Jun 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants