Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

doc: streamline Error and Argument sections#1603

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
phip1611 wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromdoc
Open

Conversation

phip1611
Copy link
Member

@phip1611phip1611 commentedApr 5, 2025
edited
Loading

Streamline all# Errors and# Arguments sections. This is about
the style, not the content. The advantage of this streamlined and
consistent style, is that new contributions can follow the guideline.

This however is only a partial solution, in case we ever want to have a
100% streamlined documentation across the whole crate.

No major changes have been made with a few small exceptions, where I
deleted obviously wrong or irrelevant error codes.

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See theRewriting History guide for help.
  • Update the changelog (if necessary)

Streamline all `# Errors` and `# Arguments` sections. This is aboutthe style, not the content. The advantage of this streamlined andconsistent style, is that new contributions can follow the guideline.This however is only a partial solution, in case we ever want to have a100% streamlined documentation across the whole crate.No major changes have been made with a few small exceptions, where Ideleted obviously wrong or irrelevant error codes.
@phip1611phip1611 changed the titledoc: streamlinedoc: streamline Error and Argument sectionsApr 6, 2025
@phip1611phip1611 mentioned this pull requestApr 6, 2025
15 tasks
@phip1611phip1611 self-assigned thisApr 7, 2025
@nicholasbishop
Copy link
Member

Some quick notes:

  1. Looks like the blank line after a doc section (e.g. after/// # Examples) has been deleted. I don't know if it's documented as recommended anywhere, but most Rust code I see puts a blank line there, so I'd prefer to keep it.
  2. +1 to consistently usingArguments instead of the mix ofArguments/Parameters, and to consistently using# section instead of# section:, and to usingStatus::* instead ofuefi::Status::*.
  3. I don't have a strong opinion on what the best formatting of error lists is, but if we're using sentence form rather than a colon, lets standardize on using "if" as the connecting word (currently there's a mix of "if" and "when").
  4. This would also be good to break into smaller PRs, e.g. one for any substantive changes ("deleted obviously wrong or irrelevant error codes"), one foruefi::Status ->Status, etc.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nicholasbishopnicholasbishopAwaiting requested review from nicholasbishop

Assignees

@phip1611phip1611

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@phip1611@nicholasbishop

[8]ページ先頭

©2009-2025 Movatter.jp