Skip to content

Commit

Permalink
Fix doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paolorechia committed Jan 10, 2024
1 parent 92f096e commit f21d622
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
//! ### Database API
//!
//! ```no_run
//! use steeldb::{SteelDB, ExecutionResult};
//! use steeldb::{SteelDB, ExecutionResult, SteelDBInterface};
//!
//! let mut database = SteelDB::new();
//! let result = database.execute("select name".to_string());
Expand All @@ -42,10 +42,12 @@
//! Effectively, this is the same as:
//!
//!```no_run
//!use steeldb::Repl;
//!use steeldb::SteelDB;
//!use steeldb_core::Repl;
//!
//!fn main() {
//! let mut repl = Repl::new();
//! let database = SteelDB::new();
//! let mut repl = Repl::new(Box::new(database));
//! repl.main_loop();
//!}
//!
Expand All @@ -58,4 +60,4 @@ mod database;

pub use database::config;
pub use database::steeldb::SteelDB;
pub use steeldb_core::{DataType, Table};
pub use steeldb_core::{DataType, ExecutionResult, SteelDBInterface, Table, TableErrors};

0 comments on commit f21d622

Please sign in to comment.