Skip to content

Commit 809c3a5

Browse files
committed
fix: update example code for get_typed_blob and get_typed_state to correct
1 parent 44f5855 commit 809c3a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ where
236236
/// field_two: HashSet<String>,
237237
/// }
238238
///
239-
/// get_typed_blob(|bytes| Ok(bincode::deserialize(bytes)?)).unwrap_or(MyType {
239+
/// get_typed_blob(|bytes| bincode::deserialize(bytes)).unwrap_or(MyType {
240240
/// field: HashMap::new(),
241241
/// field_two: HashSet::new(),
242242
/// });
@@ -272,7 +272,7 @@ where
272272
/// field_two: HashSet<String>,
273273
/// }
274274
///
275-
/// get_typed_state(|bytes| Ok(bincode::deserialize(bytes)?)).unwrap_or(MyStateType {
275+
/// get_typed_state(|bytes| bincode::deserialize(bytes)).unwrap_or(MyStateType {
276276
/// field: HashMap::new(),
277277
/// field_two: HashSet::new(),
278278
/// });

0 commit comments

Comments
 (0)