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

docs: Bytes::new etc should return Self not Bytes #568

Merged
merged 1 commit into from Aug 24, 2022

Conversation

adamchalmers
Copy link
Contributor

I noticed that some constructors return Self (like copy_from_slice) whereas others return Bytes. I think it'd be easier, especially for new Rust programmers, to ctrl+f the docs if this was consistent.

I noticed that some constructors return Self (like [copy_from_slice](https://docs.rs/bytes/latest/bytes/struct.Bytes.html#method.copy_from_slice)) whereas others return Bytes. I think it'd be easier, especially for new Rust programmers, to ctrl+f the docs if this was consistent.
@Darksonn Darksonn merged commit a36f661 into tokio-rs:master Aug 24, 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.

None yet

3 participants