This repository was archived by the owner on Apr 9, 2023. It is now read-only.
File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 13
13
//! between 5,000ns and 100,000ns to find a MIME type.)
14
14
//! - Check if a file *is* a certain type.
15
15
//! - Handles aliases (ex: `application/zip` vs `application/x-zip-compressed`)
16
- //! - Uses system [FreeDesktop.org magic files](https://specifications.freedesktop.org/
17
- //! shared-mime-info-spec/shared-mime-info-spec-latest.html) on Linux systems, and built-in
18
- //! magic file on Windows and macOS.
16
+ //! - Uses system [FreeDesktop.org magic files](https://specifications.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html)
17
+ //! on Linux systems, and built-in magic file on Windows and macOS.
19
18
//! - Can delegate different file types to different "checkers", reducing false positives
20
19
//! by choosing a different method of attack.
21
20
//!
@@ -461,7 +460,7 @@ fn match_filepath_noalias(mimetype: &str, filepath: &Path) -> bool
461
460
/// ```rust
462
461
/// use std::path::Path;
463
462
///
464
- /// // Path to a GIF file
463
+ /// // Get path to a GIF file
465
464
/// let path: &Path = Path::new("tests/image/gif");
466
465
///
467
466
/// // Check if the MIME and the file are a match
You can’t perform that action at this time.
0 commit comments