Fix sentence in E0451 diagnostic.

This commit is contained in:
rphmeier 2016-02-16 21:31:50 -05:00
parent bf3ff77ec8
commit 94499e3385

View File

@ -205,8 +205,8 @@ let f = Bar::Foo{ a: 0, b: 0 }; // error: field `b` of struct `Bar::Foo`
// is private
```
To fix this error, please ensure that all the fields of the struct, or
implement a function for easy instantiation. Examples:
To fix this error, please ensure that all the fields of the struct are public,
or implement a function for easy instantiation. Examples:
```
mod Bar {