chore: fix typos (#3758)

This commit is contained in:
David Pedersen
2026-05-15 12:32:46 +00:00
committed by GitHub
parent c8276951b0
commit 5bc0046084
25 changed files with 39 additions and 39 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
# Examples
This folder contains numerous examples showing how to use axum. Each example is
setup as its own crate so its dependencies are clear.
set up as its own crate so its dependencies are clear.
For a list of what the community built with axum, please see the list
[here](../ECOSYSTEM.md).
@@ -49,7 +49,7 @@ async fn print_request_body(request: Request, next: Next) -> Result<impl IntoRes
async fn buffer_request_body(request: Request) -> Result<Request, Response> {
let (parts, body) = request.into_parts();
// this won't work if the body is an long running stream
// this won't work if the body is a long-running stream
let bytes = body
.collect()
.await
@@ -7,9 +7,9 @@
//! `thiserror` can provide such conversion using derive macros. See
//! [`thiserror`]
//! - Verbose types: types become much larger, which makes them difficult to
//! read. Current limitations on type aliasing makes impossible to destructure
//! read. Current limitations on type aliasing make it impossible to destructure
//! a type alias. See [#1116]
//!
//!
//! [`thiserror`]: https://crates.io/crates/thiserror
//! [#1116]: https://github.com/tokio-rs/axum/issues/1116#issuecomment-1186197684
+1 -1
View File
@@ -277,7 +277,7 @@ async fn login_authorized(
.exchange_code(AuthorizationCode::new(query.code.clone()))
.request_async(&client)
.await
.context("failed in sending request request to authorization server")?;
.context("failed in sending request to authorization server")?;
// Fetch user data from discord
let user_data: User = client
+1 -1
View File
@@ -69,7 +69,7 @@ async fn unit_testable_handler(ws: WebSocketUpgrade) -> Response {
})
}
// The implementation is largely the same as `integration_testable_handle_socket` expect we call
// The implementation is largely the same as `integration_testable_handle_socket` except we call
// methods from `SinkExt` and `StreamExt`.
async fn unit_testable_handle_socket<W, R>(mut write: W, mut read: R)
where
+2 -2
View File
@@ -34,11 +34,11 @@ use tower_http::{
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
//allows to extract the IP of connecting user
// Allows extracting the IP of the connecting user
use axum::extract::connect_info::ConnectInfo;
use axum::extract::ws::CloseFrame;
//allows to split the websocket stream into separate TX and RX branches
// Allows splitting the websocket stream into separate TX and RX branches
use futures_util::{sink::SinkExt, stream::StreamExt};
#[tokio::main]