Rollup merge of #69723 - sjud:sjud-doc-request, r=Mark-Simulacrum

Added doc on keyword Pub.

Hi, this is my first pull request. I hope it's OK. Please let me know if it would benefit from any changes. Thank you.
This commit is contained in:
Yuki Okushi 2020-03-14 04:03:23 +09:00 committed by GitHub
commit 35df9cca7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -925,9 +925,15 @@ mod mut_keyword {}
// //
/// Make an item visible to others. /// Make an item visible to others.
/// ///
/// The documentation for this keyword is [not yet complete]. Pull requests welcome! /// The keyword `pub` makes any module, function, or data structure accessible from inside
/// of external modules. The `pub` keyword may also be used in a `use` declaration to re-export
/// an identifier from a namespace.
/// ///
/// [not yet complete]: https://github.com/rust-lang/rust/issues/34601 /// For more information on the `pub` keyword, please see the visibility section
/// of the [reference] and for some examples, see [Rust by Example].
///
/// [reference]:../reference/visibility-and-privacy.html?highlight=pub#visibility-and-privacy
/// [Rust by Example]:../rust-by-example/mod/visibility.html
mod pub_keyword {} mod pub_keyword {}
#[doc(keyword = "ref")] #[doc(keyword = "ref")]