Skip to content

Avoid passive voice and clarify macro in exit test docs. #1243

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

iamleeg
Copy link
Contributor

@iamleeg iamleeg commented Jul 29, 2025

Review recent changes in the exit test documentation.

Motivation:

@grynspan asked me to review #1165 but it was already merged by the time I got there, so here are my review suggestions as a fresh PR.

Modifications:

  • Specified which macro we mean by "this macro" in the exit tests docs.
  • Removed instances of the passive voice.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

@grynspan grynspan added documentation 📚 Improvements or additions to documentation enhancement New feature or request exit-tests ☠️ Work related to exit tests exit-test-capture-lists 🥍 Work related to exit test capture lists labels Jul 29, 2025
@grynspan grynspan added this to the Swift 6.x (main) milestone Jul 29, 2025
and [`Codable`](https://developer.apple.com/documentation/swift/codable). The
testing library encodes each value using [`encode(to:)`](https://developer.apple.com/documentation/swift/encodable/encode(to:))
in the parent process, and decodes it using [`init(from:)`](https://developer.apple.com/documentation/swift/decodable/init(from:))
in the child process, before passing it to the exit test body.
Copy link
Contributor

Choose a reason for hiding this comment

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

The new commas are incorrect, at least the way I was taught (circa 1854.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The words "and", and "before", are acting as coordinating conjunctions between independent clauses in this sentence. While you can always find a grammar "rule" that says you should use a comma in the same place that another "rule" says you shouldn't use one, I think the commas separate the independent clauses here.

Copy link
Contributor

Choose a reason for hiding this comment

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

We could split the difference and make this a list of steps instead?

@iamleeg iamleeg requested a review from grynspan August 1, 2025 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation 📚 Improvements or additions to documentation enhancement New feature or request exit-test-capture-lists 🥍 Work related to exit test capture lists exit-tests ☠️ Work related to exit tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants