Skip to content
This repository was archived by the owner on Oct 18, 2021. It is now read-only.

Commit 2e90b91

Browse files
committed
Fix spacing
1 parent 4227f3e commit 2e90b91

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

src/cursor.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
//! ```no_run
44
//! # #[macro_use] extern crate bson;
55
//! # extern crate mongodb;
6-
//!
6+
//! #
77
//! # use mongodb::{Client, ThreadedClient};
88
//! # use mongodb::db::ThreadedDatabase;
99
//! # use bson::Bson;
10-
//!
10+
//! #
1111
//! # fn main() {
1212
//! # let client = Client::connect("localhost", 27017).unwrap();
1313
//! # let coll = client.db("test").collection("info");
14-
//!
14+
//! #
1515
//! coll.insert_one(doc!{ "spirit_animal" => "ferret" }, None).unwrap();
1616
//!
1717
//! let mut cursor = coll.find(None, None).unwrap();

src/db/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//! # use mongodb::{Client, ThreadedClient};
1212
//! # use mongodb::db::ThreadedDatabase;
1313
//! # let client = Client::connect("localhost", 27017).unwrap();
14-
//!
14+
//! #
1515
//! let db = client.db("movies");
1616
//! db.create_collection("action", None).unwrap();
1717
//! let collection_names = db.collection_names(None).unwrap();
@@ -24,7 +24,7 @@
2424
//! # use mongodb::{Client, ThreadedClient};
2525
//! # use mongodb::db::ThreadedDatabase;
2626
//! # let client = Client::connect("localhost", 27017).unwrap();
27-
//!
27+
//! #
2828
//! let db = client.db("redacted");
2929
//! db.create_user("saghm", "1234", None).unwrap();
3030
//! db.auth("saghm", "1234").unwrap();
@@ -39,13 +39,13 @@
3939
//! ```no_run
4040
//! # #[macro_use] extern crate bson;
4141
//! # extern crate mongodb;
42-
//!
42+
//! #
4343
//! # use mongodb::{Client, CommandType, ThreadedClient};
4444
//! # use mongodb::db::ThreadedDatabase;
4545
//! # use bson::Bson;
4646
//! # fn main() {
4747
//! # let client = Client::connect("localhost", 27017).unwrap();
48-
//!
48+
//! #
4949
//! let db = client.db("movies");
5050
//! let cmd = doc! { "connectionStatus" => 1 };
5151
//! let result = db.command(cmd, CommandType::Suppressed, None).unwrap();

src/gridfs/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
//! ```no_run
1616
//! # use mongodb::{Client, ThreadedClient};
1717
//! # use mongodb::gridfs::{Store, ThreadedStore};
18-
//!
18+
//! #
1919
//! let client = Client::connect("localhost", 27017).unwrap();
2020
//! let db = client.db("grid");
2121
//! let fs = Store::with_db(db.clone());

src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//! ```no_run
1010
//! # use mongodb::{Client, ClientOptions, ThreadedClient};
1111
//! # use mongodb::common::{ReadMode, ReadPreference};
12-
//!
12+
//! #
1313
//! // Direct connection to a server. Will not look for other servers in the topology.
1414
//! let client = Client::connect("localhost", 27017)
1515
//! .ok().expect("Failed to initialize client.");
@@ -34,14 +34,14 @@
3434
//! # use mongodb::{Client, ThreadedClient};
3535
//! # use mongodb::db::ThreadedDatabase;
3636
//! # use bson::Bson;
37-
//!
37+
//! #
3838
//! # fn main() {
3939
//! # let client = Client::connect("localhost", 27017).unwrap();
40-
//!
40+
//! #
4141
//! let coll = client.db("media").collection("movies");
42-
//! coll.insert_one(doc!{ "title" => "Back to the Future" }, None).ok().expect("Failed to insert.");
43-
//! coll.update_one(doc!{}, doc!{ "director" => "Robert Zemeckis" }, None).ok().expect("Failed to update.");
44-
//! coll.delete_many(doc!{}, None).ok().expect("Failed to delete.");
42+
//! coll.insert_one(doc!{ "title" => "Back to the Future" }, None).unwrap();
43+
//! coll.update_one(doc!{}, doc!{ "director" => "Robert Zemeckis" }, None).unwrap();
44+
//! coll.delete_many(doc!{}, None).unwrap();
4545
//!
4646
//! let mut cursor = coll.find(None, None).unwrap();
4747
//! for result in cursor {

0 commit comments

Comments
 (0)