Skip to content

Commit 1dd2840

Browse files
authored
Update server.rs docs to reflect method rename
Updates the docs in server.rs to reflect the renaming of Server::middleware to Server::with.
1 parent f99f581 commit 1dd2840

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use crate::{Endpoint, Request, Route};
2525
///
2626
/// - Middleware extends the base Tide framework with additional request or
2727
/// response processing, such as compression, default headers, or logging. To
28-
/// add middleware to an app, use the [`Server::middleware`] method.
28+
/// add middleware to an app, use the [`Server::with`] method.
2929
pub struct Server<State> {
3030
router: Arc<Router<State>>,
3131
state: State,

0 commit comments

Comments
 (0)