Skip to content

Commit 5e61827

Browse files
authored
Rollup merge of #73720 - GuillaumeGomez:cleanup-e0704, r=Dylan-DPC
Clean up E0704 error explanation r? @Dylan-DPC
2 parents 03f565c + 3e48aae commit 5e61827

File tree

1 file changed

+3
-2
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+3
-2
lines changed

src/librustc_error_codes/error_codes/E0704.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
This error indicates that a incorrect visibility restriction was specified.
1+
An incorrect visibility restriction was specified.
22

3-
Example of erroneous code:
3+
Erroneous code example:
44

55
```compile_fail,E0704
66
mod foo {
@@ -12,6 +12,7 @@ mod foo {
1212

1313
To make struct `Bar` only visible in module `foo` the `in` keyword should be
1414
used:
15+
1516
```
1617
mod foo {
1718
pub(in crate::foo) struct Bar {

0 commit comments

Comments
 (0)