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)