about summary refs log tree commit diff
diff options
context:
space:
mode:
authorrphmeier <rphmeier@gmail.com>2016-02-16 21:31:50 -0500
committerrphmeier <rphmeier@gmail.com>2016-02-16 21:31:50 -0500
commit94499e3385fd42b2dbc75614e867183dd63c529a (patch)
treea676e83ff9bac09de52531fe1ebb1121c06520f6
parentbf3ff77ec8c2049c3523842e341036a2c4c2281d (diff)
downloadrust-94499e3385fd42b2dbc75614e867183dd63c529a.tar.gz
rust-94499e3385fd42b2dbc75614e867183dd63c529a.zip
Fix sentence in E0451 diagnostic.
-rw-r--r--src/librustc_privacy/diagnostics.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_privacy/diagnostics.rs b/src/librustc_privacy/diagnostics.rs
index d124ead5091..673960338ea 100644
--- a/src/librustc_privacy/diagnostics.rs
+++ b/src/librustc_privacy/diagnostics.rs
@@ -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 {