Skip to content

Commit 0969b74

Browse files
committed
Rename rng::Read trait method try_read
1 parent ac1673e commit 0969b74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rng.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ pub trait Read {
1313
type Error;
1414

1515
/// Get a number of bytes from the RNG.
16-
fn read(&mut self, buf: &mut [u8]) -> nb::Result<usize, Self::Error>;
16+
fn try_read(&mut self, buf: &mut [u8]) -> nb::Result<usize, Self::Error>;
1717
}

0 commit comments

Comments
 (0)