Skip to content

Commit d5f2bb2

Browse files
camelidJoshua Nelson
and
Joshua Nelson
authored
Tweak docs
Co-authored-by: Joshua Nelson <[email protected]>
1 parent 99ff276 commit d5f2bb2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/librustdoc/clean/types.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1804,7 +1804,9 @@ impl From<hir::PrimTy> for PrimitiveType {
18041804
crate enum Visibility {
18051805
/// `pub`
18061806
Public,
1807-
/// visibility inherited from parent (e.g. for enum variant fields)
1807+
/// Visibility inherited from parent.
1808+
///
1809+
/// For example, this is the visibility of private items and of enum variants.
18081810
Inherited,
18091811
/// `pub(crate)`, `pub(super)`, or `pub(in path::to::somewhere)`
18101812
Restricted(DefId),

0 commit comments

Comments
 (0)