tokio-rs / bytes

Utilities for working with bytes
MIT License
1.91k stars 288 forks source link

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

Closed adamchalmers closed 2 years ago

adamchalmers commented 2 years ago

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.