mirror of
https://github.com/tokio-rs/axum.git
synced 2025-03-13 19:27:53 +01:00
Use "set up" rather than "setup" when used as a verb
This commit is contained in:
parent
d244d3f936
commit
503d31976f
3 changed files with 3 additions and 3 deletions
|
@ -296,7 +296,7 @@ impl<F> WebSocketUpgrade<F> {
|
|||
|
||||
/// Finalize upgrading the connection and call the provided callback with
|
||||
/// the stream.
|
||||
#[must_use = "to setup the WebSocket connection, this response must be returned"]
|
||||
#[must_use = "to set up the WebSocket connection, this response must be returned"]
|
||||
pub fn on_upgrade<C, Fut>(self, callback: C) -> Response
|
||||
where
|
||||
C: FnOnce(WebSocket) -> Fut + Send + 'static,
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
//!
|
||||
//! # Routing
|
||||
//!
|
||||
//! [`Router`] is used to setup which paths goes to which services:
|
||||
//! [`Router`] is used to set up which paths goes to which services:
|
||||
//!
|
||||
//! ```rust
|
||||
//! use axum::{Router, routing::get};
|
||||
|
|
|
@ -39,7 +39,7 @@ async fn main() {
|
|||
let db_connection_str = std::env::var("DATABASE_URL")
|
||||
.unwrap_or_else(|_| "postgres://postgres:password@localhost".to_string());
|
||||
|
||||
// setup connection pool
|
||||
// set up connection pool
|
||||
let pool = PgPoolOptions::new()
|
||||
.max_connections(5)
|
||||
.acquire_timeout(Duration::from_secs(3))
|
||||
|
|
Loading…
Add table
Reference in a new issue