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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
examples: fix (2021-03) #10505
examples: fix (2021-03) #10505
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
馃挌 some minor corrections. Thanks!
src/json/to_json.cr
Outdated
@@ -227,20 +227,9 @@ module Enum::ValueConverter(T) | |||
# used for serialization. | |||
# | |||
# ``` | |||
# enum Stages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these are needed to have a self-contained example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had removed it because the test failed with the definition of the enum of the same name.
However, the clarity of the example should be a priority, so I reverted and will modify my tool. 馃憤
src/json/to_json.cr
Outdated
# Enum::ValueConverter.to_json(Stages::INITIAL) # => %(0) | ||
# Enum::ValueConverter.to_json(Stages::SECOND_STAGE) # => %(1) | ||
# | ||
# @[Flags] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
Co-authored-by: Brian J. Cardiff <bcardiff@gmail.com>
Co-authored-by: Sijawusz Pur Rahnama <sija@sija.pl>
src/yaml/to_yaml.cr
Outdated
@@ -193,24 +193,13 @@ module Enum::ValueConverter(T) | |||
# used for serialization. | |||
# | |||
# ``` | |||
# enum Stages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, i just noticed that here there are also some definitions that should stay in order to make them self-contained.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I missed to revert the yaml one. 馃槂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @maiha 馃檹
Catch up examples before crystal-1.0.0 馃槂
Best regards,