Skip to content

Commit d6c8aea

Browse files
committed
fix example wrongly named variable
1 parent 263d504 commit d6c8aea

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

heed/src/cookbook.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -592,12 +592,10 @@
592592
//!
593593
//! ```
594594
//! use std::error::Error;
595-
//! use std::fs;
596-
//! use std::path::Path;
597595
//!
598596
//! use heed::byteorder::NativeEndian;
599597
//! use heed::types::*;
600-
//! use heed::{Database, DatabaseFlags, EnvOpenOptions};
598+
//! use heed::EnvOpenOptions;
601599
//!
602600
//! fn main() -> Result<(), Box<dyn Error>> {
603601
//! let path = tempfile::tempdir()?;
@@ -626,7 +624,7 @@
626624
//! let txn = env.read_txn()?;
627625
//! let key: Vec<u8> = vec![1, 2, 3, 4];
628626
//!
629-
//! for res in db
627+
//! for result in db
630628
//! .range(
631629
//! &txn,
632630
//! &(

0 commit comments

Comments
 (0)