From b9747f216dfa4dae3c4ad2a368d204ee8404d920 Mon Sep 17 00:00:00 2001 From: Ivan Ukhov Date: Mon, 10 Jun 2019 20:29:34 +0200 Subject: [PATCH] Adjust a few descriptions --- src/connection.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/connection.rs b/src/connection.rs index 3c12d09..d0798d2 100644 --- a/src/connection.rs +++ b/src/connection.rs @@ -12,7 +12,7 @@ pub struct Connection { phantom: PhantomData, } -/// A set of connection flags. +/// Flags for opening a database connection. #[derive(Clone, Copy, Debug)] pub struct OpenFlags(c_int); @@ -24,7 +24,7 @@ impl Connection { Connection::open_with_flags(path, OpenFlags::new().set_create().set_read_write()) } - /// Open a database connection with a specific set of flags. + /// Open a database connection with specific flags. pub fn open_with_flags>(path: T, flags: OpenFlags) -> Result { let mut raw = 0 as *mut _; unsafe { @@ -158,7 +158,7 @@ impl Drop for Connection { } impl OpenFlags { - /// Create a set of connection flags. + /// Create flags for opening a database connection. #[inline] pub fn new() -> Self { OpenFlags(0)