]> git.lizzy.rs Git - rust.git/commitdiff
Tweak docs
authorCamelid <camelidcamel@gmail.com>
Tue, 23 Mar 2021 17:37:58 +0000 (10:37 -0700)
committerGitHub <noreply@github.com>
Tue, 23 Mar 2021 17:37:58 +0000 (10:37 -0700)
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
src/librustdoc/clean/types.rs

index 4716d4f5f0e7162c47262870dfc1dbbd5bdafb94..3dd27933471be260962b7b9d15baf26bbc994af7 100644 (file)
@@ -1804,7 +1804,9 @@ fn from(prim_ty: hir::PrimTy) -> 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),