Skip to content

Commit ab44edf

Browse files
authored
fix readme example
1 parent d93954a commit ab44edf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Then invoke the `getrandom` function:
3434
fn get_random_buf() -> Result<[u8; 32], getrandom::Error> {
3535
let mut buf = [0u8; 32];
3636
getrandom::getrandom(&mut buf)?;
37-
buf
37+
Ok(buf)
3838
}
3939
```
4040

0 commit comments

Comments
 (0)