From 4779e82d69fe8a390451acd030251045b2cf09dd Mon Sep 17 00:00:00 2001 From: Aman Karmani Date: Wed, 30 Oct 2024 14:36:26 -0700 Subject: [PATCH] Fix minor doc typo (#104) * Fix minor doc typo * fix assert msg --- src/config.rs | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index eb4d9ba..7026ec3 100644 --- a/src/config.rs +++ b/src/config.rs @@ -218,7 +218,7 @@ impl Builder { pub fn clean_rate(mut self, clean_rate: Duration) -> Builder { assert!( clean_rate > Duration::from_secs(0), - "connection_timeout must be positive" + "clean_rate must be positive" ); if clean_rate > Duration::from_secs(1) { diff --git a/src/lib.rs b/src/lib.rs index 8074046..1aaf136 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -276,7 +276,7 @@ impl Pool { /// /// Expired connections may be closed lazily before reuse. /// - /// None meas reuse forever. + /// None means reuse forever. /// Defaults to None. /// /// # Panics