Skip to content
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

DOC: Copy-edit the 'partition' docstring. #22149

Merged
merged 2 commits into from
Aug 18, 2022

Conversation

WarrenWeckesser
Copy link
Member

Closes gh-7958.

@WarrenWeckesser
Copy link
Member Author

WarrenWeckesser commented Aug 18, 2022

Link to the rendered updated docstring: partition

the k-th element are moved before this element and all equal or
greater are moved behind it. The ordering of the elements in the two
partitions is undefined.
position it would be in a sorted array. In the partitioned array, all
Copy link
Member

@charris charris Aug 18, 2022

Choose a reason for hiding this comment

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

"it" is a bit ambiguous, the element or its value? I think "value" would be correct, i.e., the same as the value of the k-th element of the sorted array.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks @charris, I pushed an update. I also fixed kth to k-th to match the existing usage.

Copy link
Member Author

Choose a reason for hiding this comment

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

I added a bunch of skip tags in the recent commit message--maybe too many?

[skip actions] [skip travis] [skip azp]
@charris charris merged commit 58ee8a8 into numpy:main Aug 18, 2022
@charris
Copy link
Member

charris commented Aug 18, 2022

Thanks Warren.

@WarrenWeckesser WarrenWeckesser deleted the doc-partition branch August 18, 2022 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slight inaccuracy in the partition docstring.
2 participants