Skip to content

Revise doc comments for API reference style (Swift 5.7-04182022) #358

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

Conversation

amartini51
Copy link
Member

Cherry pick of #350

amartini51 and others added 2 commits April 26, 2022 13:53
- 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 amartini51 force-pushed the amartini/docs_91301229_5.7-04182022 branch from 857a130 to 6fbe2c5 Compare April 26, 2022 20:53
@amartini51 amartini51 requested a review from milseman April 27, 2022 18:32
@amartini51
Copy link
Member Author

@milseman Thanks for reviewing the main PR. I've confirmed locally that this PR has the same set of changes. Is there anything else I should do before merging this one?

opendiff \
=(git diff origin/main...amartini/docs_91301229) \
=(git diff origin/swift/release/5.7-04182022...amartini/docs_91301229_5.7-04182022)

@milseman
Copy link
Member

We need high-level sign off on this if it's even possible to land at this point

@stephentyrone
Copy link
Contributor

Do we have this on 5.7 as well?

@milseman
Copy link
Member

I don't think so, no

@stephentyrone
Copy link
Contributor

stephentyrone commented Apr 28, 2022

Let's please get a clone for 5.7 up so that this at least gets into a later beta. @amartini51 can you take care of that?

@amartini51
Copy link
Member Author

Re-cherry-picked for the Swift 5.7 branch in #378. Looks like it's too late in the release process to do anything with this PR, so closing it.

@amartini51 amartini51 closed this May 4, 2022
@amartini51 amartini51 deleted the amartini/docs_91301229_5.7-04182022 branch August 19, 2022 19:11
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.

3 participants