Skip to content

Commit 94499e3

Browse files
committed
Fix sentence in E0451 diagnostic.
1 parent bf3ff77 commit 94499e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_privacy/diagnostics.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ let f = Bar::Foo{ a: 0, b: 0 }; // error: field `b` of struct `Bar::Foo`
205205
// is private
206206
```
207207
208-
To fix this error, please ensure that all the fields of the struct, or
209-
implement a function for easy instantiation. Examples:
208+
To fix this error, please ensure that all the fields of the struct are public,
209+
or implement a function for easy instantiation. Examples:
210210
211211
```
212212
mod Bar {

0 commit comments

Comments
 (0)