Skip to content

Commit dcd621b

Browse files
committed
Doc cleanup
1 parent 32efe30 commit dcd621b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/lib.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,16 @@ pub enum ConnectTarget {
117117
/// Authentication information.
118118
#[derive(Clone, Debug)]
119119
pub struct UserInfo {
120-
/// The username
120+
/// The username.
121121
pub user: String,
122-
/// An optional password
122+
/// An optional password.
123123
pub password: Option<String>,
124124
}
125125

126126
/// Information necessary to open a new connection to a Postgres server.
127127
#[derive(Clone, Debug)]
128128
pub struct ConnectParams {
129-
/// The target server
129+
/// The target server.
130130
pub target: ConnectTarget,
131131
/// The target port.
132132
///
@@ -136,7 +136,9 @@ pub struct ConnectParams {
136136
///
137137
/// `Connection::connect` requires a user but `cancel_query` does not.
138138
pub user: Option<UserInfo>,
139-
/// The database to connect to. Defaults the value of `user`.
139+
/// The database to connect to.
140+
///
141+
/// Defaults the value of `user`.
140142
pub database: Option<String>,
141143
/// Runtime parameters to be passed to the Postgres backend.
142144
pub options: Vec<(String, String)>,

0 commit comments

Comments
 (0)