From 6d9b386c5ba35f61e4fb8e5e545e78dd3ddd5029 Mon Sep 17 00:00:00 2001 From: Yerkebulan Tulibergenov Date: Fri, 4 Jun 2021 21:47:34 -0700 Subject: [PATCH] fix doc by explicitly dropping connection --- src/lib.rs | 2 +- src/local_infile_handler/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index e58588c9..ab525afe 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -79,7 +79,7 @@ //! ).await?; //! //! // Dropped connection will go to the pool -//! conn; +//! drop(conn); //! //! // Pool must be disconnected explicitly because //! // it's an asynchronous operation. diff --git a/src/local_infile_handler/mod.rs b/src/local_infile_handler/mod.rs index eec396b8..6d35df4a 100644 --- a/src/local_infile_handler/mod.rs +++ b/src/local_infile_handler/mod.rs @@ -64,7 +64,7 @@ pub mod builtin; /// assert_eq!(result.len(), 1); /// assert_eq!(result[0], "foobar"); /// -/// conn; // dropped connection will go to the pool +/// drop(conn); // dropped connection will go to the pool /// /// pool.disconnect().await?; /// # Ok(())