1
Fork 0

Tweak docs

Co-authored-by: Joshua Nelson <joshua@yottadb.com>
This commit is contained in:
Camelid 2021-03-23 10:37:58 -07:00 committed by GitHub
parent 99ff2767bf
commit d5f2bb2899
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1804,7 +1804,9 @@ impl From<hir::PrimTy> for PrimitiveType {
crate enum Visibility {
/// `pub`
Public,
/// visibility inherited from parent (e.g. for enum variant fields)
/// Visibility inherited from parent.
///
/// For example, this is the visibility of private items and of enum variants.
Inherited,
/// `pub(crate)`, `pub(super)`, or `pub(in path::to::somewhere)`
Restricted(DefId),