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

support for multiline doc comments #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hwchen
Copy link
Contributor

@hwchen hwchen commented Mar 7, 2021

No description provided.

Copy link
Owner

@matklad matklad left a comment

Choose a reason for hiding this comment

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

None => return Ok(None),
};

loop {
Copy link
Owner

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?

Copy link
Contributor Author

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.

Copy link
Owner

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

@hwchen
Copy link
Contributor Author

hwchen commented Mar 7, 2021

Let's make a comment multiline here: https://github.com/matklad/xflags/blob/master/xflags-macros/tests/it/src/help.rs

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?

@matklad
Copy link
Owner

matklad commented Mar 7, 2021

Yup, just add a multilingual comment, so that we can manually inspect the generated code and see that it’s reasonable.

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