Skip to content

Commit

Permalink
Typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stephank committed Nov 18, 2023
1 parent c57fea7 commit 26a8d04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::{

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

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

0 comments on commit 26a8d04

Please sign in to comment.