Skip to content

Commit d77f394

Browse files
authored
Merge pull request #750 from rossmacarthur/fix-659
Fix `Route::serve_dir` docs
2 parents 702e514 + c8d945d commit d77f394

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/route.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ impl<'a, State: Clone + Send + Sync + 'static> Route<'a, State> {
127127
/// #[async_std::main]
128128
/// async fn main() -> Result<(), std::io::Error> {
129129
/// let mut app = tide::new();
130-
/// app.at("/public/images").serve_dir("images/")?;
130+
/// app.at("/images").serve_dir("public/images/")?;
131131
/// app.listen("127.0.0.1:8080").await?;
132132
/// Ok(())
133133
/// }

0 commit comments

Comments
 (0)