-
Notifications
You must be signed in to change notification settings - Fork 103
Doc comment standardization #460
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
Doc comment standardization #460
Conversation
Applying `cargo clippy` suggestions, spell checking, and cleaning up where project norms are not upheld. *Please see PR for methodology and full list of explanations*
///\s{4}[a-zA-Z0-9]
|
Hey @IsaacCloos, sorry for the delay I was on holiday! I'm reviewing this now :) |
|
Seems there is an issue with the rust format. Could you check that ? |
🤦🏻♂️
Also, do you know of a way I can opt out of the "auto issue close" workflow? That wasn't my intention until the issue is completely resolved. |
|
Since you didn't use the keywords |
bidoubiwa
left a comment
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 went over all the changes, and they all seem good 🔥 Thanks so much for this amazing work
|
bors merge |
|
Build succeeded:
|
Pull Request
This work addresses a slew of inconsistencies I've noticed in this projects documentation. These were found while trying to establish a basis to abide to for new doc comments coming soon to resolve #372
Related issue
Partially addresses #372
What does this PR do?
exampleview. It was 50/50 throughout the project so I push the 'hide' strategy. I personally believe it cleans up the method examples, but if you'd like to have it visible everywhere instead I can totally make that change 😄. I just think it would be beneficial to have some consistency here for users. (making the docs more predictable and all)```rustannotations (not the code!!). Per the docs statingrustis the default language.printorassertcommand is a better user experience..len()>0changed to.len() > 0Defaultdeclarations (a trend I've noticed in other libraries).PR checklist
Please check if your PR fulfills the following requirements:
Thank you so much for contributing to Meilisearch!
Criticism Welcome
I thought being a little opinionated about this first pass at a general "clean up" could prove fruitful if it sparked discussions about what YOU want to see in this project. I'd be more than happy to make any necessary changes to get this the way you'd like. If you have any questions about decisions I made, please let me know! I'm new to Rust and always trying to understand the dos and don'ts better 😄
Thanks for the feedback!
p.s. I am aware that this PR is everything BUT what the linked ticket is requesting 😅. I call it 'Preliminary work' 😆