mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-07 00:00:12 +02:00
Use "set up" rather than "setup" when used as a verb
This commit is contained in:
committed by
David Pedersen
parent
133a4dc32e
commit
d303074379
@@ -312,7 +312,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,
|
||||
|
||||
+1
-1
@@ -66,7 +66,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};
|
||||
|
||||
Reference in New Issue
Block a user