File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2095,7 +2095,7 @@ along with their default settings. [Compiler
2095
2095
plugins] ( book/compiler-plugins.html#lint-plugins ) can provide additional lint checks.
2096
2096
2097
2097
``` {.ignore}
2098
- mod m1 {
2098
+ pub mod m1 {
2099
2099
// Missing documentation is ignored here
2100
2100
#[allow(missing_docs)]
2101
2101
pub fn undocumented_one() -> i32 { 1 }
@@ -2115,9 +2115,9 @@ check on and off:
2115
2115
2116
2116
``` {.ignore}
2117
2117
#[warn(missing_docs)]
2118
- mod m2{
2118
+ pub mod m2{
2119
2119
#[allow(missing_docs)]
2120
- mod nested {
2120
+ pub mod nested {
2121
2121
// Missing documentation is ignored here
2122
2122
pub fn undocumented_one() -> i32 { 1 }
2123
2123
@@ -2137,7 +2137,7 @@ that lint check:
2137
2137
2138
2138
``` {.ignore}
2139
2139
#[forbid(missing_docs)]
2140
- mod m3 {
2140
+ pub mod m3 {
2141
2141
// Attempting to toggle warning signals an error here
2142
2142
#[allow(missing_docs)]
2143
2143
/// Returns 2.
You can’t perform that action at this time.
0 commit comments