From 1847dd97488c72193f92880b7202b2d96da56e6b Mon Sep 17 00:00:00 2001 From: Joel Uckelman Date: Mon, 13 Nov 2023 23:12:21 +0000 Subject: [PATCH] Improve documentation of axum::extract::Path (#2313) --- axum/src/extract/path/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/axum/src/extract/path/mod.rs b/axum/src/extract/path/mod.rs index d55ad4aa35..0be9008803 100644 --- a/axum/src/extract/path/mod.rs +++ b/axum/src/extract/path/mod.rs @@ -25,9 +25,8 @@ use std::{fmt, sync::Arc}; /// /// These examples assume the `serde` feature of the [`uuid`] crate is enabled. /// -/// One `Path` argument extracts _all_ captures into a tuple. A function should -/// not have multiple `Path` arguments---the first will extract all captures -/// and subsequent ones will do nothing. +/// One `Path` can extract multiple captures. It is not necessary (and does +/// not work) to give a handler more than one `Path` argument. /// /// [`uuid`]: https://crates.io/crates/uuid ///