diff options
| author | Camelid <camelidcamel@gmail.com> | 2021-03-23 10:37:58 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-23 10:37:58 -0700 |
| commit | d5f2bb2899ac152eddd8e4c6bd19e9d154c1497f (patch) | |
| tree | 518d40dab7615987c55dd46ff586a1e5c21a9cac /src | |
| parent | 99ff2767bf31c0844f393999e34e475ac441ecb0 (diff) | |
| download | rust-d5f2bb2899ac152eddd8e4c6bd19e9d154c1497f.tar.gz rust-d5f2bb2899ac152eddd8e4c6bd19e9d154c1497f.zip | |
Tweak docs
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/clean/types.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustdoc/clean/types.rs b/src/librustdoc/clean/types.rs index 4716d4f5f0e..3dd27933471 100644 --- a/src/librustdoc/clean/types.rs +++ b/src/librustdoc/clean/types.rs @@ -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), |
