Skip to content

Commit 26a8d04

Browse files
committed
Typo fixes
1 parent c57fea7 commit 26a8d04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/service.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use crate::{
1010

1111
/// High-level interface for serving static files.
1212
///
13-
/// This services serves files based on the request path. The path is first sanitized, then mapped
13+
/// This struct serves files based on the request path. The path is first sanitized, then mapped
1414
/// to a file on the filesystem. If the path corresponds to a directory, it will try to look for a
1515
/// directory index.
1616
///
@@ -43,7 +43,7 @@ impl Static<TokioFileOpener> {
4343
}
4444

4545
impl<O: FileOpener> Static<O> {
46-
/// Create a new instance of `Static` with the given root directory.
46+
/// Create a new instance of `Static` with a custom file opener.
4747
pub fn with_opener(opener: O) -> Self {
4848
Self {
4949
resolver: Resolver::with_opener(opener),

0 commit comments

Comments
 (0)