style: BufferedReader -> BufferedRead

Single-method traits usually use the same name as their
method and aren't usually the 'noun' (which is usually an
implementation of them instead).

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2019-02-28 09:17:04 +01:00
parent 8f57971714
commit fded74d0c7
2 changed files with 4 additions and 4 deletions

View File

@ -50,10 +50,10 @@ macro_rules! try_block {
}
/// The `BufferedReader` trait provides a single function
/// The `BufferedRead` trait provides a single function
/// `buffered_read`. It returns a reference to an internal buffer. The
/// purpose of this traid is to avoid unnecessary data copies.
pub trait BufferedReader {
pub trait BufferedRead {
/// This functions tries to fill the internal buffers, then
/// returns a reference to the available data. It returns an empty
/// buffer if `offset` points to the end of the file.