From 4255dbaca753cd821939804d1438ed2d405b3caa Mon Sep 17 00:00:00 2001 From: rasul Date: Thu, 30 Apr 2020 20:44:30 -0500 Subject: [PATCH] change doc comment code because hash() now needs to return Result --- src/hash.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hash.rs b/src/hash.rs index bfb558d..d884960 100644 --- a/src/hash.rs +++ b/src/hash.rs @@ -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, S: Into>(data: D, salt: S) -> RudeResult { Ok(try_log!(