Skip to content

Commit

Permalink
Update heed/src/cookbook.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Tamo <[email protected]>
  • Loading branch information
Kerollmops and irevoire authored Mar 5, 2024
1 parent e9ea79d commit 8389c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion heed/src/cookbook.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@
//! for (i, result) in db.lazily_decode_data().iter(&wtxn)?.enumerate() {
//! let (_key, lazy_value) = result?;
//! if i == 43 {
//! // This is where the magix happen. We receive a Lazy type
//! // This is where the magic happens. We receive a Lazy type
//! // that wraps a slice of bytes. We can decode on purpose.
//! let value = lazy_value.decode()?;
//! assert_eq!(value.get("secret"), Some(&String::from("434343")));
Expand Down

0 comments on commit 8389c86

Please sign in to comment.