From 80afd9253d1d917209ffcd662f086c8a3826cf5e Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Sun, 9 Jun 2024 20:15:31 +0200 Subject: [PATCH] Add scope doc alias for Router::nest (#2756) --- axum/src/routing/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/axum/src/routing/mod.rs b/axum/src/routing/mod.rs index 6564df7d..47b85474 100644 --- a/axum/src/routing/mod.rs +++ b/axum/src/routing/mod.rs @@ -185,6 +185,7 @@ where } #[doc = include_str!("../docs/routing/nest.md")] + #[doc(alias = "scope")] // Some web frameworks like actix-web use this term #[track_caller] pub fn nest(self, path: &str, router: Router) -> Self { let RouterInner {