diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-05-01 11:12:15 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-05-01 20:20:18 +0530 |
| commit | 70020aa0665c9144f13202e13ec071f5eaf56075 (patch) | |
| tree | 192b47cc1faaa1d6260f943567645ebc1dfec876 /src/doc/reference.md | |
| parent | aecf3d8b659c1f5bc457a5a146357ba484e27346 (diff) | |
| parent | 2fdd1b01987314c0b0fc27a3a572d452c0b29ab1 (diff) | |
| download | rust-70020aa0665c9144f13202e13ec071f5eaf56075.tar.gz rust-70020aa0665c9144f13202e13ec071f5eaf56075.zip | |
Rollup merge of #24981 - carols10cents:remove-more-priv, r=alexcrichton
Hi! While researching stuff for the reference and the grammar, I came across a few mentions of using the `priv` keyword that was removed in 0.11.0 (#13547, #8122, rust-lang/rfcs#26, [RFC 0026](https://github.com/rust-lang/rfcs/blob/master/text/0026-remove-priv.md)). One occurrence is a mention in the reference, a few are in comments, and a few are marking test functions. I left the test that makes sure you can't name an ident `priv` since it's still a reserved keyword. I did a little grepping around for `priv `, priv in backticks, `Private` etc and I think the remaining instances are fine, but if anyone knows anywhere in particular I should check for any other lingering mentions of `priv`, please let me know and I would be happy to! :fallen_leaf: :ocean:
Diffstat (limited to 'src/doc/reference.md')
| -rw-r--r-- | src/doc/reference.md | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md index 4485704c3d5..6be67fc5144 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -1557,8 +1557,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 one exception. Enum variants -in a `pub` enum are also public by default. You are allowed to alter this -default visibility with the `priv` keyword. When an item is declared as `pub`, +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: ``` |
