change doc comment code because hash() now needs to return Result

master
rasul 5 years ago
parent 77ab912d19
commit 4255dbaca7

@ -19,7 +19,7 @@ use crate::try_log;
/// use rude::hash::*;
/// let data = "butterflies";
/// let salt = salt();
/// println!("{}", hash(data, salt));
/// println!("{}", hash(data, salt).unwrap());
/// ```
pub fn hash<D: Into<String>, S: Into<String>>(data: D, salt: S) -> RudeResult<String> {
Ok(try_log!(

Loading…
Cancel
Save