Skip to content

Commit eac6dbd

Browse files
committed
Highlighting in visibility-and-privacy.md
1 parent 03c52c4 commit eac6dbd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/visibility-and-privacy.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ items in a `pub` Trait are public by default; Enum variants
1919
in a `pub` enum are also public by default. When an item is declared as `pub`,
2020
it can be thought of as being accessible to the outside world. For example:
2121

22-
```
22+
```rust
2323
# fn main() {}
2424
// Declare a private struct
2525
struct Foo;
@@ -79,7 +79,7 @@ scope.
7979
Here's an example of a program which exemplifies the three cases outlined
8080
above:
8181

82-
```
82+
```rust
8383
// This module is private, meaning that no external crate can access this
8484
// module. Because it is private at the root of this current crate, however, any
8585
// module in the crate may access any publicly visible item in this module.
@@ -140,7 +140,7 @@ this is a public directive, this allows the item to be used in the current
140140
module through the rules above. It essentially allows public access into the
141141
re-exported item. For example, this program is valid:
142142

143-
```
143+
```rust
144144
pub use self::implementation::api;
145145

146146
mod implementation {

0 commit comments

Comments
 (0)