File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
4545impl < 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) ,
You can’t perform that action at this time.
0 commit comments