Skip to content

Commit

Permalink
Reformat doc comments for less width
Browse files Browse the repository at this point in the history
  • Loading branch information
RadicalZephyr committed Feb 22, 2019
1 parent e641c6f commit 83cb560
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/items/implementations.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,17 @@ mod values {

pub use self::color::Color;
fn main() {
color::Color::WHITE; // actual path to the implementing type and impl in the same module
color::Color::red(); // impl blocks in different modules are still accessed through a path to the type
Color::red(); // rexported paths to the implementing type also work
// values::Color::red(); // Does not work, because use in `values` is not pub
// Actual path to the implementing type and impl in the same module.
color::Color::WHITE;

// Impl blocks in different modules are still accessed through a path to the type.
color::Color::red();

// Re-exported paths to the implementing type also work.
Color::red();

// Does not work, because use in `values` is not pub.
// values::Color::red();
}
```

Expand Down

0 comments on commit 83cb560

Please sign in to comment.