Skip to content

Revise doc comments for API reference style (Swift 5.7) #378

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

Closed
wants to merge 3 commits into from

Conversation

amartini51
Copy link
Member

Cherry pick of #350

amartini51 and others added 2 commits May 4, 2022 11:45
- Fix spelling error in parameter name (invertion --> inversion).
- Add docs for parameters and return values.
- Use indicative instead of imperative for method/function/initializer
  abstracts.  (Match a regex. --> Matches a regex.)
- Don't use code voice in abstracts, or symbol names as English nouns.
- Use contractions per Apple style.
- Turn /// comments that contain notes for this API's implementers into
  plain // comments, to omit that content from the docs.  Move them
  before the /// comments, to keep doc comments immediately adjacent
  to the declaration they documents.

(cherry picked from commit ab308ee)
Co-authored-by: Nate Cook <[email protected]>
(cherry picked from commit 96df14d)
@amartini51
Copy link
Member Author

Confirmed that, after resolving merge conflicts, this cherry-pick PR makes the same changes as the original by running:

opendiff =(git diff 882c2be...ac618f6) =(git diff origin/swift/release/5.7...amartini/docs_91301229_5.7) 

@amartini51 amartini51 requested a review from milseman May 4, 2022 18:55
@stephentyrone
Copy link
Contributor

Alex, I attempted to clean up the conflicts here, but it probably needs another pass, because the signature of one of the operations changed.

@amartini51
Copy link
Member Author

Thanks @stephentyrone, I'm taking a look through the merge conflicts. Can you point me at the signature that changed? I'll want to make sure the docs on 'main' get updated for that.

@amartini51
Copy link
Member Author

Swift 5.7 has shipped — closing this cherry-pick.

@amartini51 amartini51 closed this Sep 15, 2022
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