Skip to content

Commit

Permalink
Fix incorrect serve static doc
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn committed Jul 30, 2024
1 parent 14e3fec commit 233c49d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/serve-static/src/dir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ impl StaticDir {
}
}

/// Sets include_dot_files and returns a new `StaticDirOptions`.
/// Sets include_dot_files.
#[inline]
pub fn include_dot_files(mut self, include_dot_files: bool) -> Self {
self.include_dot_files = include_dot_files;
Expand All @@ -188,14 +188,14 @@ impl StaticDir {
self
}

/// Sets auto_list and returns a new `StaticDirOptions`.
/// Sets auto_list.
#[inline]
pub fn auto_list(mut self, auto_list: bool) -> Self {
self.auto_list = auto_list;
self
}

/// Sets compressed_variations and returns a new `StaticDirOptions`.
/// Sets compressed_variations.
#[inline]
pub fn compressed_variation<A>(mut self, algo: A, exts: &str) -> Self
where
Expand All @@ -206,14 +206,14 @@ impl StaticDir {
self
}

/// Sets defaults and returns a new `StaticDirOptions`.
/// Sets defaults.
#[inline]
pub fn defaults(mut self, defaults: impl IntoVecString) -> Self {
self.defaults = defaults.into_vec_string();
self
}

/// Sets fallback and returns a new `StaticDirOptions`.
/// Sets fallback.
pub fn fallback(mut self, fallback: impl Into<String>) -> Self {
self.fallback = Some(fallback.into());
self
Expand Down

0 comments on commit 233c49d

Please sign in to comment.