Fix typos

This commit is contained in:
johnthagen 2017-09-28 09:52:46 -04:00
parent 220c707fd9
commit 26fa22fe04
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
//! To generate a buffer with cryptographically strong bytes: //! To generate a buffer with cryptographically strong bytes:
//! //!
//! ``` //! ```
//! let muf buf = [0; 256] //! let muf buf = [0; 256];
//! rand_bytes(&mut buf).unwrap(); //! rand_bytes(&mut buf).unwrap();
//! ``` //! ```
//! //!
@ -21,7 +21,7 @@ use ffi;
use cvt; use cvt;
use error::ErrorStack; use error::ErrorStack;
/// Fills buffer with cryptographically strong pseudo-random bytes. /// Fill buffer with cryptographically strong pseudo-random bytes.
pub fn rand_bytes(buf: &mut [u8]) -> Result<(), ErrorStack> { pub fn rand_bytes(buf: &mut [u8]) -> Result<(), ErrorStack> {
unsafe { unsafe {
ffi::init(); ffi::init();