From aec9852c2a94cd85124f530eead43ad7e492436c Mon Sep 17 00:00:00 2001 From: Olaf Alders Date: Fri, 8 Sep 2023 11:38:29 -0400 Subject: [PATCH] Use "set up" rather than "setup" when used as a verb --- axum/src/extract/ws.rs | 2 +- axum/src/lib.rs | 2 +- examples/sqlx-postgres/src/main.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/axum/src/extract/ws.rs b/axum/src/extract/ws.rs index ba022a8d29..966776aca9 100644 --- a/axum/src/extract/ws.rs +++ b/axum/src/extract/ws.rs @@ -296,7 +296,7 @@ impl WebSocketUpgrade { /// 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(self, callback: C) -> Response where C: FnOnce(WebSocket) -> Fut + Send + 'static, diff --git a/axum/src/lib.rs b/axum/src/lib.rs index b567b97e51..d30d1f008d 100644 --- a/axum/src/lib.rs +++ b/axum/src/lib.rs @@ -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}; diff --git a/examples/sqlx-postgres/src/main.rs b/examples/sqlx-postgres/src/main.rs index 8660b387a7..465711157e 100644 --- a/examples/sqlx-postgres/src/main.rs +++ b/examples/sqlx-postgres/src/main.rs @@ -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))