From c8d945d33a831f89589ecee7ae421a4e55281ddc Mon Sep 17 00:00:00 2001 From: Ross MacArthur Date: Mon, 23 Nov 2020 17:05:25 +0200 Subject: [PATCH] Fix `Route::serve_dir` docs --- src/route.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/route.rs b/src/route.rs index ec05db9ab..e97d79d29 100644 --- a/src/route.rs +++ b/src/route.rs @@ -127,7 +127,7 @@ impl<'a, State: Clone + Send + Sync + 'static> Route<'a, State> { /// #[async_std::main] /// async fn main() -> Result<(), std::io::Error> { /// let mut app = tide::new(); - /// app.at("/public/images").serve_dir("images/")?; + /// app.at("/images").serve_dir("public/images/")?; /// app.listen("127.0.0.1:8080").await?; /// Ok(()) /// }