-
Notifications
You must be signed in to change notification settings - Fork 9
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
support for multiline doc comments #9
base: master
Are you sure you want to change the base?
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.
Let's make a comment multiline here: https://github.com/matklad/xflags/blob/master/xflags-macros/tests/it/src/help.rs
None => return Ok(None), | ||
}; | ||
|
||
loop { |
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.
isn't this while let Some
?
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.
This is :) . I guess lately I've been feeling that explicit match is more clear sometimes, but I'm happy to change it.
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.
Yeah, I’d prefer a while let
Just to clarify, I'll just need to make a multiline comment in the macro call to show everything compiles, but don't need to add a test for the exact help output? |
Yup, just add a multilingual comment, so that we can manually inspect the generated code and see that it’s reasonable. |
No description provided.