From 9c67c6c33a0986cdf1d6ac17e2b1048235be938f Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Tue, 24 Mar 2026 18:37:30 +0100 Subject: [PATCH] [FIX] link to query-params-with-empty-string (#3695) Co-authored-by: Yann Simon --- axum-extra/src/extract/query.rs | 2 +- axum/src/extract/query.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/axum-extra/src/extract/query.rs b/axum-extra/src/extract/query.rs index 625c583f..1ab45c01 100644 --- a/axum-extra/src/extract/query.rs +++ b/axum-extra/src/extract/query.rs @@ -46,7 +46,7 @@ use serde_core::de::DeserializeOwned; /// For handling values being empty vs missing see the [query-params-with-empty-strings][example] /// example. /// -/// [example]: https://github.com/tokio-rs/axum/blob/main/examples/query-params-with-empty-strings/src/main.rs +/// [example]: https://github.com/tokio-rs/axum/blob/v0.8.x/examples/query-params-with-empty-strings/src/main.rs /// /// While `Option` will handle empty parameters (e.g. `param=`), beware when using this with a /// `Vec`. If your list is optional, use `Vec` in combination with `#[serde(default)]` diff --git a/axum/src/extract/query.rs b/axum/src/extract/query.rs index 6fe81099..89e5e566 100644 --- a/axum/src/extract/query.rs +++ b/axum/src/extract/query.rs @@ -40,7 +40,7 @@ use serde_core::de::DeserializeOwned; /// For handling values being empty vs missing see the [query-params-with-empty-strings][example] /// example. /// -/// [example]: https://github.com/tokio-rs/axum/blob/main/examples/query-params-with-empty-strings/src/main.rs +/// [example]: https://github.com/tokio-rs/axum/blob/v0.8.x/examples/query-params-with-empty-strings/src/main.rs /// /// For handling multiple values for the same query parameter, in a `?foo=1&foo=2&foo=3` /// fashion, use [`axum_extra::extract::Query`] instead.