File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -925,9 +925,15 @@ mod mut_keyword {}
925
925
//
926
926
/// Make an item visible to others.
927
927
///
928
- /// The documentation for this keyword is [not yet complete]. Pull requests welcome!
928
+ /// The keyword `pub` makes any module, function, or data structure accessible from inside
929
+ /// of external modules. The `pub` keyword may also be used in a `use` declaration to re-export
930
+ /// an identifier from a namespace.
929
931
///
930
- /// [not yet complete]: https://github.com/rust-lang/rust/issues/34601
932
+ /// For more information on the `pub` keyword, please see the visibility section
933
+ /// of the [reference] and for some examples, see [Rust by Example].
934
+ ///
935
+ /// [reference]:../reference/visibility-and-privacy.html?highlight=pub#visibility-and-privacy
936
+ /// [Rust by Example]:../rust-by-example/mod/visibility.html
931
937
mod pub_keyword { }
932
938
933
939
#[ doc( keyword = "ref" ) ]
You can’t perform that action at this time.
0 commit comments