Add scope doc alias for Router::nest (#2756)

This commit is contained in:
Jonas Platte 2024-06-09 20:15:31 +02:00 committed by GitHub
parent 0a92e31a50
commit 80afd9253d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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<S>) -> Self {
let RouterInner {