Skip to content

Commit 3c70561

Browse files
committed
Rename rng::Read trait method try_read
1 parent 3fc7933 commit 3c70561

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blocking/rng.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ pub trait Read {
1515
///
1616
/// If this function returns an error, it is unspecified how many bytes it has read, but it
1717
/// will never read more than would be necessary to completely fill the buffer.
18-
fn read(&mut self, buffer: &mut [u8]) -> Result<(), Self::Error>;
18+
fn try_read(&mut self, buffer: &mut [u8]) -> Result<(), Self::Error>;
1919
}

0 commit comments

Comments
 (0)