From 6e984b754ac6cad51d4d8e59830776c0618447a1 Mon Sep 17 00:00:00 2001 From: Joel Uckelman Date: Sat, 18 Nov 2023 12:37:39 +0000 Subject: [PATCH] Improve documentation of Path (#2314) --- axum/src/extract/path/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/axum/src/extract/path/mod.rs b/axum/src/extract/path/mod.rs index 8df392a8..0be90088 100644 --- a/axum/src/extract/path/mod.rs +++ b/axum/src/extract/path/mod.rs @@ -25,6 +25,9 @@ use std::{fmt, sync::Arc}; /// /// These examples assume the `serde` feature of the [`uuid`] crate is enabled. /// +/// 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 /// /// ```rust,no_run