File tree 3 files changed +10
-10
lines changed
3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -2100,15 +2100,15 @@ plugins](guide-plugin.html#lint-plugins) can provide additional lint checks.
2100
2100
``` {.ignore}
2101
2101
mod m1 {
2102
2102
// Missing documentation is ignored here
2103
- #[allow(missing_doc )]
2103
+ #[allow(missing_docs )]
2104
2104
pub fn undocumented_one() -> int { 1 }
2105
2105
2106
2106
// Missing documentation signals a warning here
2107
- #[warn(missing_doc )]
2107
+ #[warn(missing_docs )]
2108
2108
pub fn undocumented_too() -> int { 2 }
2109
2109
2110
2110
// Missing documentation signals an error here
2111
- #[deny(missing_doc )]
2111
+ #[deny(missing_docs )]
2112
2112
pub fn undocumented_end() -> int { 3 }
2113
2113
}
2114
2114
```
@@ -2117,16 +2117,16 @@ This example shows how one can use `allow` and `warn` to toggle a particular
2117
2117
check on and off.
2118
2118
2119
2119
``` {.ignore}
2120
- #[warn(missing_doc )]
2120
+ #[warn(missing_docs )]
2121
2121
mod m2{
2122
- #[allow(missing_doc )]
2122
+ #[allow(missing_docs )]
2123
2123
mod nested {
2124
2124
// Missing documentation is ignored here
2125
2125
pub fn undocumented_one() -> int { 1 }
2126
2126
2127
2127
// Missing documentation signals a warning here,
2128
2128
// despite the allow above.
2129
- #[warn(missing_doc )]
2129
+ #[warn(missing_docs )]
2130
2130
pub fn undocumented_two() -> int { 2 }
2131
2131
}
2132
2132
@@ -2139,10 +2139,10 @@ This example shows how one can use `forbid` to disallow uses of `allow` for
2139
2139
that lint check.
2140
2140
2141
2141
``` {.ignore}
2142
- #[forbid(missing_doc )]
2142
+ #[forbid(missing_docs )]
2143
2143
mod m3 {
2144
2144
// Attempting to toggle warning signals an error here
2145
- #[allow(missing_doc )]
2145
+ #[allow(missing_docs )]
2146
2146
/// Returns 2.
2147
2147
pub fn undocumented_too() -> int { 2 }
2148
2148
}
Original file line number Diff line number Diff line change 34
34
35
35
// NOTE: The following code was generated by "src/etc/unicode.py", do not edit directly
36
36
37
- #![allow(missing_doc , non_uppercase_statics, non_snake_case)]
37
+ #![allow(missing_docs , non_uppercase_statics, non_snake_case)]
38
38
'''
39
39
40
40
# Mapping taken from Table 12 from:
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- #![ deny( missing_doc ) ]
11
+ #![ deny( missing_docs ) ]
12
12
#![ doc="module" ]
13
13
14
14
#[ doc="struct" ]
You can’t perform that action at this time.
0 commit comments