Skip to content

Commit

Permalink
fix files test
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Mar 7, 2019
1 parent ceb6d45 commit d77954d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actix-files/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,11 @@ fn directory_listing(

/// Static files handling
///
/// `StaticFile` handler must be registered with `App::service()` method.
/// `Files` service must be registered with `App::service()` method.
///
/// ```rust
/// use actix_web::App;
/// use actix_staticfiles as fs;
/// use actix_files as fs;
///
/// fn main() {
/// let app = App::new()
Expand All @@ -240,7 +240,7 @@ pub struct Files<S, C = DefaultConfig> {
impl<S: 'static> Files<S> {
/// Create new `Files` instance for specified base directory.
///
/// `StaticFile` uses `ThreadPool` for blocking filesystem operations.
/// `File` uses `ThreadPool` for blocking filesystem operations.
/// By default pool with 5x threads of available cpus is used.
/// Pool size can be changed by setting ACTIX_CPU_POOL environment variable.
pub fn new<T: Into<PathBuf>>(path: &str, dir: T) -> Files<S> {
Expand Down

0 comments on commit d77954d

Please sign in to comment.