Skip to content

Commit

Permalink
Indicate how the std::path::Components struct is created.
Browse files Browse the repository at this point in the history
  • Loading branch information
frewsxcv committed Jun 25, 2016
1 parent 35004b4 commit f300faf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libstd/path.rs
Expand Up @@ -579,6 +579,8 @@ impl<'a> AsRef<OsStr> for Component<'a> {
/// See the module documentation for an in-depth explanation of components and
/// their role in the API.
///
/// This `struct` is created by the [`path::Path::components`] method.
///
/// # Examples
///
/// ```
Expand All @@ -590,6 +592,8 @@ impl<'a> AsRef<OsStr> for Component<'a> {
/// println!("{:?}", component);
/// }
/// ```
///
/// [`path::Path::components`]: struct.Path.html#method.components
#[derive(Clone)]
#[stable(feature = "rust1", since = "1.0.0")]
pub struct Components<'a> {
Expand Down

0 comments on commit f300faf

Please sign in to comment.