We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 228a0ed commit 3e48aaeCopy full SHA for 3e48aae
src/librustc_error_codes/error_codes/E0704.md
@@ -1,6 +1,6 @@
1
-This error indicates that a incorrect visibility restriction was specified.
+An incorrect visibility restriction was specified.
2
3
-Example of erroneous code:
+Erroneous code example:
4
5
```compile_fail,E0704
6
mod foo {
@@ -12,6 +12,7 @@ mod foo {
12
13
To make struct `Bar` only visible in module `foo` the `in` keyword should be
14
used:
15
+
16
```
17
18
pub(in crate::foo) struct Bar {
0 commit comments