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

Commits on Aug 23, 2022

  1. docs: Bytes::new etc should return Self not Bytes

    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.
    adamchalmers authored Aug 23, 2022
    Configuration menu
    Copy the full SHA
    4a4384f View commit details
    Browse the repository at this point in the history