Skip to content

Commit 8c215a7

Browse files
committed
Fix documents and messages.
Update clippy_lints/src/methods/mod.rs
1 parent caf0563 commit 8c215a7

File tree

1 file changed

+4
-4
lines changed
  • clippy_lints/src/methods

1 file changed

+4
-4
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@ declare_clippy_lint! {
11351135
///
11361136
/// **Why is this bad?** When people testing a file type with `FileType::is_file`
11371137
/// they are testing whether a path is something they can get bytes from. But
1138-
/// `is_file` doesn't cover special file types in unix-like systems. and not covering
1138+
/// `is_file` doesn't cover special file types in unix-like systems, and doesn't cover
11391139
/// symlink in windows. Using `!FileType::is_dir()` is a better way to that intention.
11401140
///
11411141
/// **Example:**
@@ -1149,7 +1149,7 @@ declare_clippy_lint! {
11491149
/// }
11501150
/// ```
11511151
///
1152-
/// should be writing as:
1152+
/// should be written as:
11531153
///
11541154
/// ```rust,ignore
11551155
/// let metadata = std::fs::metadata("foo.txt")?;
@@ -1160,8 +1160,8 @@ declare_clippy_lint! {
11601160
/// }
11611161
/// ```
11621162
pub FILETYPE_IS_FILE,
1163-
style,
1164-
"`FileType::is_file` is not recommended to test for readable file type."
1163+
restriction,
1164+
"`FileType::is_file` is not recommended to test for readable file type"
11651165
}
11661166

11671167
declare_lint_pass!(Methods => [

0 commit comments

Comments
 (0)