Fix unix socket location in docs (/var/run/postgresql instead of /var/lib/postgresql)

This commit is contained in:
Nicolas Guiard
2020-11-11 11:14:28 +01:00
parent 5ad3c9a139
commit c4b1f5ab5c

View File

@@ -59,7 +59,7 @@ use tokio_postgres::{Error, Socket};
/// ```
///
/// ```not_rust
/// host=/var/lib/postgresql,localhost port=1234 user=postgres password='password with spaces'
/// host=/var/run/postgresql,localhost port=1234 user=postgres password='password with spaces'
/// ```
///
/// ```not_rust
@@ -80,7 +80,7 @@ use tokio_postgres::{Error, Socket};
/// ```
///
/// ```not_rust
/// postgresql://user:password@%2Fvar%2Flib%2Fpostgresql/mydb?connect_timeout=10
/// postgresql://user:password@%2Fvar%2Frun%2Fpostgresql/mydb?connect_timeout=10
/// ```
///
/// ```not_rust
@@ -88,7 +88,7 @@ use tokio_postgres::{Error, Socket};
/// ```
///
/// ```not_rust
/// postgresql:///mydb?user=user&host=/var/lib/postgresql
/// postgresql:///mydb?user=user&host=/var/run/postgresql
/// ```
#[derive(Clone)]
pub struct Config {