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

Clarify BytesMut::unsplit docs #535

Merged
merged 1 commit into from Apr 6, 2022
Merged

Clarify BytesMut::unsplit docs #535

merged 1 commit into from Apr 6, 2022

Conversation

leshow
Copy link
Contributor

@leshow leshow commented Mar 16, 2022

closes #532

src/bytes_mut.rs Outdated
Comment on lines 736 to 739
/// If the two `BytesMut` objects were previously contiguous and not mutated
/// in a way that causes re-allocation.
/// i.e., if `other` was created by calling `split_off` on this `BytesMut`,
/// then this is an `O(1)` operation that just decreases a reference
Copy link
Contributor

Choose a reason for hiding this comment

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

This sentence seems a bit broken - there's a period in the middle of a sentence.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, I removed the period

@Darksonn Darksonn merged commit 9e6edd1 into tokio-rs:master Apr 6, 2022
lelongg pushed a commit to lelongg/bytes that referenced this pull request Jan 9, 2023
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.

Unclear BytesMut::unsplit documentation
2 participants