From 719192167ad82ddc8961cc31c8f7adca2ea54a57 Mon Sep 17 00:00:00 2001 From: Broono Lu Date: Wed, 25 Dec 2019 02:06:58 +0800 Subject: [PATCH 1/2] Fix typo --- src/coll/mod.rs | 2 +- src/db/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coll/mod.rs b/src/coll/mod.rs index 6c1920827..4a1c91917 100644 --- a/src/coll/mod.rs +++ b/src/coll/mod.rs @@ -145,7 +145,7 @@ impl Collection { self.inner.write_concern.as_ref() } - /// Drops the collection, deleting all data, users, and indexes stored in in. + /// Drops the collection, deleting all data, users, and indexes stored in it. pub fn drop(&self, options: impl Into>) -> Result<()> { let mut options = options.into(); resolve_options!(self, options, [write_concern]); diff --git a/src/db/mod.rs b/src/db/mod.rs index dc5212358..6bcc232e1 100644 --- a/src/db/mod.rs +++ b/src/db/mod.rs @@ -140,7 +140,7 @@ impl Database { Collection::new(self.clone(), name, Some(options)) } - /// Drops the database, deleting all data, collections, users, and indexes stored in in. + /// Drops the database, deleting all data, collections, users, and indexes stored in it. pub fn drop(&self, options: impl Into>) -> Result<()> { let mut options = options.into(); resolve_options!(self, options, [write_concern]); From 5245b0f49f449733cce6b76b48525b2a79412808 Mon Sep 17 00:00:00 2001 From: Broono Lu Date: Wed, 25 Dec 2019 18:28:55 +0800 Subject: [PATCH 2/2] Fix markdown closing accent in docs --- src/client/options/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/options/mod.rs b/src/client/options/mod.rs index a5c706aac..34aeafafa 100644 --- a/src/client/options/mod.rs +++ b/src/client/options/mod.rs @@ -170,7 +170,7 @@ pub struct ClientOptions { /// /// Note that by default, the driver will autodiscover other nodes in the cluster. To connect /// directly to a single server (rather than autodiscovering the rest of the cluster), set the - /// `direct` field to `true. + /// `direct` field to `true`. #[builder(default_code = "vec![ StreamAddress { hostname: \"localhost\".to_string(), port: Some(27017),