]> git.lizzy.rs Git - rust.git/commitdiff
Clean up E0704 error explanation
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 25 Jun 2020 11:19:56 +0000 (13:19 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 25 Jun 2020 11:19:56 +0000 (13:19 +0200)
src/librustc_error_codes/error_codes/E0704.md

index cde46f52c27d75e9b48e3fa0f1cd916723083b8f..c22b274fb223e8e2b652e11188328fd5a056d85c 100644 (file)
@@ -1,6 +1,6 @@
-This error indicates that a incorrect visibility restriction was specified.
+An incorrect visibility restriction was specified.
 
-Example of erroneous code:
+Erroneous code example:
 
 ```compile_fail,E0704
 mod foo {
@@ -12,6 +12,7 @@ mod foo {
 
 To make struct `Bar` only visible in module `foo` the `in` keyword should be
 used:
+
 ```
 mod foo {
     pub(in crate::foo) struct Bar {