Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/libstd/path.rs
Original file line number Diff line number Diff line change
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