diff options
| author | Liigo <liigo@qq.com> | 2016-12-13 20:21:00 +0800 |
|---|---|---|
| committer | Liigo <liigo@qq.com> | 2016-12-13 20:22:34 +0800 |
| commit | e095c710f73ae98cdc769a3e7992d3a44e91bb8f (patch) | |
| tree | df406dc5bd56b1d8c060374af2e95b2990615326 /src | |
| parent | 83231859417efc363d6929b58d75cdcf40bb5f2d (diff) | |
| download | rust-e095c710f73ae98cdc769a3e7992d3a44e91bb8f.tar.gz rust-e095c710f73ae98cdc769a3e7992d3a44e91bb8f.zip | |
Associated items and variants inherit visibility from their traits and enums respectively.
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/reference.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md index ce3fef982b9..b5a91a170d8 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -1732,7 +1732,7 @@ warnings are generated, or otherwise "you used a private item of another module and weren't allowed to." By default, everything in Rust is *private*, with two exceptions: Associated -items of a Trait are public by default; Enum variants +items in a `pub` Trait are public by default; Enum variants in a `pub` enum are also public by default. When an item is declared as `pub`, it can be thought of as being accessible to the outside world. For example: |
