Skip to content

Conversation

teddy5518
Copy link
Contributor

Hello,
I was reading through SequencesAndCollections.rst and I have found a stray comma and typo.

Please review. 🐻

@@ -55,11 +55,11 @@ represented by the `SequenceType` protocol::

__ http://swiftdoc.org/v3.0/type/AnyIterator/

As you can see, sequence does nothing more than deliver an iterator.
As you can see, sequence does nothing more than delivering an iterator.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this really a typo? I have a strong feeling that "does" warrants an infinitive.

Copy link
Collaborator

Choose a reason for hiding this comment

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

While we are here:

Suggested change
As you can see, sequence does nothing more than delivering an iterator.
As you can see, a sequence does nothing more than delivering an iterator.

Copy link
Contributor Author

@teddy5518 teddy5518 Dec 24, 2022

Choose a reason for hiding this comment

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

@AnthonyLatsis Thank you for your comments.

I agree that "does" warrants an infinitive. I thought that the word "deliver" was being emphasized here. For that reason, I believed "delivering" suits better than "deliver".

I find your suggestion makes more sense than mine. I will modify my commit accordingly.

Thank you.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I agree that "does" warrants an infinitive. I thought that the word "deliver" was being emphasized here. For that reason, I believed "delivering" suits better than "deliver".

I hear you, but we have to be careful not to sacrifice grammar for preference. I am not entirely sure the gerund is inappropriate though; it could be that both fit.

cc @CodaFi

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@AnthonyLatsis Thank you for your opinion. I reverted accordingly. :)

To understand the need for iterators, it's important to distinguish
the two kinds of sequences.

* **Volatile** sequences like "stream of network packets," carry
* **Volatile** sequences like "stream of network packets", carry
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we even need one here? Two is also fine, but a comma on just one end of the non-restrictive clause distorts the flow.

Copy link
Contributor Author

@teddy5518 teddy5518 Dec 24, 2022

Choose a reason for hiding this comment

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

@AnthonyLatsis Thank you again for your comment.
I just realized that I omitted comma before "like" in the process of committing. I apologize for the confusion.

I meant to suggest **Volatile** sequences, like "stream of network packets", carry as I thought line 62 was intended to use same sentence structure as line 63.

May I ask for your opinion on this again? Thank you in advance.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sounds good to me! Either 2 commas or none is fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@AnthonyLatsis I added 2 commas as we discussed. Would you be able to call smoke test? Thank you and happy new year. :)

@AnthonyLatsis
Copy link
Collaborator

AnthonyLatsis commented Jan 3, 2023

Happy New Year! Could you squash the changes into a single commit before we invoke the tests?

@AnthonyLatsis AnthonyLatsis requested a review from CodaFi January 3, 2023 00:24
@teddy5518 teddy5518 changed the title [docs] erasing a stray comma and fixing typo [docs] modified sentence structure Jan 3, 2023
@teddy5518
Copy link
Contributor Author

teddy5518 commented Jan 3, 2023

@AnthonyLatsis Hello, I just squashed the changes into single commit. :)

@AnthonyLatsis AnthonyLatsis added documentation standard library Area: Standard library umbrella typo fix labels Jan 3, 2023
@AnthonyLatsis
Copy link
Collaborator

@swift-ci please smoke test

@teddy5518
Copy link
Contributor Author

@AnthonyLatsis Thank you! Please merge when you get a chance. :)

@CodaFi CodaFi merged commit f97bf69 into swiftlang:main Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation gardening standard library Area: Standard library umbrella
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants