]> git.lizzy.rs Git - rust.git/commitdiff
Remove mention of 'priv'; visibility is either PUB or nothing
authorCarol Nichols <carol.nichols@gmail.com>
Thu, 30 Apr 2015 02:43:47 +0000 (22:43 -0400)
committerCarol Nichols <carol.nichols@gmail.com>
Thu, 30 Apr 2015 02:47:10 +0000 (22:47 -0400)
src/librustc_typeck/collect.rs
src/libsyntax/parse/parser.rs

index 6cb6df008c1cf7e505ae8c8616809a5dcf37dd8b..18d0031badb84cfb9b9d06301f7357012e184fa6 100644 (file)
@@ -899,7 +899,7 @@ fn convert_item(ccx: &CrateCtxt, it: &ast::Item) {
                 if let ast::MethodImplItem(ref sig, _) = ii.node {
                     // if the method specifies a visibility, use that, otherwise
                     // inherit the visibility from the impl (so `foo` in `pub impl
-                    // { fn foo(); }` is public, but private in `priv impl { fn
+                    // { fn foo(); }` is public, but private in `impl { fn
                     // foo(); }`).
                     let method_vis = ii.vis.inherit_from(parent_visibility);
                     Some((sig, ii.id, ii.ident, method_vis, ii.span))
index f76de1f04ce2ce2f5517ad2dd2bac5d349727f35..a277dda6f0f6a6e8411a81fe92718f8ae4e9aefd 100644 (file)
@@ -4772,7 +4772,7 @@ fn parse_struct_decl_field(&mut self, allow_pub: bool) -> PResult<StructField> {
         return self.parse_single_struct_field(Inherited, attrs);
     }
 
-    /// Parse visibility: PUB, PRIV, or nothing
+    /// Parse visibility: PUB or nothing
     fn parse_visibility(&mut self) -> PResult<Visibility> {
         if try!(self.eat_keyword(keywords::Pub)) { Ok(Public) }
         else { Ok(Inherited) }