Remove mention of 'priv'; visibility is either PUB or nothing

This commit is contained in:
Carol Nichols 2015-04-29 22:43:47 -04:00
parent 899d4180ef
commit 31b7001b49
2 changed files with 2 additions and 2 deletions

View file

@ -4772,7 +4772,7 @@ impl<'a> Parser<'a> {
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) }