Skip to content

Commit 31b7001

Browse files
committed
Remove mention of 'priv'; visibility is either PUB or nothing
1 parent 899d418 commit 31b7001

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc_typeck/collect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ fn convert_item(ccx: &CrateCtxt, it: &ast::Item) {
899899
if let ast::MethodImplItem(ref sig, _) = ii.node {
900900
// if the method specifies a visibility, use that, otherwise
901901
// inherit the visibility from the impl (so `foo` in `pub impl
902-
// { fn foo(); }` is public, but private in `priv impl { fn
902+
// { fn foo(); }` is public, but private in `impl { fn
903903
// foo(); }`).
904904
let method_vis = ii.vis.inherit_from(parent_visibility);
905905
Some((sig, ii.id, ii.ident, method_vis, ii.span))

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4772,7 +4772,7 @@ impl<'a> Parser<'a> {
47724772
return self.parse_single_struct_field(Inherited, attrs);
47734773
}
47744774

4775-
/// Parse visibility: PUB, PRIV, or nothing
4775+
/// Parse visibility: PUB or nothing
47764776
fn parse_visibility(&mut self) -> PResult<Visibility> {
47774777
if try!(self.eat_keyword(keywords::Pub)) { Ok(Public) }
47784778
else { Ok(Inherited) }

0 commit comments

Comments
 (0)