1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-27 17:52:56 +01:00

Fixed documentation typo for actix-files (#1278)

This commit is contained in:
Adam Kewley 2020-01-15 19:09:58 +00:00 committed by Nikolay Kim
parent bca41f8d40
commit 412e54ce10

View File

@ -275,7 +275,7 @@ impl Files {
/// ///
/// `File` uses `ThreadPool` for blocking filesystem operations. /// `File` uses `ThreadPool` for blocking filesystem operations.
/// By default pool with 5x threads of available cpus is used. /// By default pool with 5x threads of available cpus is used.
/// Pool size can be changed by setting ACTIX_CPU_POOL environment variable. /// Pool size can be changed by setting ACTIX_THREADPOOL environment variable.
pub fn new<T: Into<PathBuf>>(path: &str, dir: T) -> Files { pub fn new<T: Into<PathBuf>>(path: &str, dir: T) -> Files {
let orig_dir = dir.into(); let orig_dir = dir.into();
let dir = match orig_dir.canonicalize() { let dir = match orig_dir.canonicalize() {