Skip to content

Commit 899d418

Browse files
committed
Remove lingering mention of 'priv' in the reference
1 parent 551a74d commit 899d418

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/doc/reference.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,8 +1562,7 @@ warnings are generated, or otherwise "you used a private item of another module
15621562
and weren't allowed to."
15631563

15641564
By default, everything in Rust is *private*, with one exception. Enum variants
1565-
in a `pub` enum are also public by default. You are allowed to alter this
1566-
default visibility with the `priv` keyword. When an item is declared as `pub`,
1565+
in a `pub` enum are also public by default. When an item is declared as `pub`,
15671566
it can be thought of as being accessible to the outside world. For example:
15681567

15691568
```

0 commit comments

Comments
 (0)