Skip to content

Commit d05a914

Browse files
Clean up E0071 long explanation
1 parent 97a1653 commit d05a914

File tree

1 file changed

+4
-4
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+4
-4
lines changed

Diff for: src/librustc_error_codes/error_codes/E0071.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
You tried to use structure-literal syntax to create an item that is
2-
not a structure or enum variant.
1+
A structure-literal syntax was used to create an item that is not a structure
2+
or enum variant.
33

44
Example of erroneous code:
55

@@ -9,8 +9,8 @@ let t = U32 { value: 4 }; // error: expected struct, variant or union type,
99
// found builtin type `u32`
1010
```
1111

12-
To fix this, ensure that the name was correctly spelled, and that
13-
the correct form of initializer was used.
12+
To fix this, ensure that the name was correctly spelled, and that the correct
13+
form of initializer was used.
1414

1515
For example, the code above can be fixed to:
1616

0 commit comments

Comments
 (0)