Skip to content

Commit 15e8a67

Browse files
authored
Auto merge of #34469 - frewsxcv:path-components, r=GuillaumeGomez
Indicate how the `std::path::Components` struct is created. None
2 parents c12eb1d + f300faf commit 15e8a67

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libstd/path.rs

+4
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,8 @@ impl<'a> AsRef<OsStr> for Component<'a> {
579579
/// See the module documentation for an in-depth explanation of components and
580580
/// their role in the API.
581581
///
582+
/// This `struct` is created by the [`path::Path::components`] method.
583+
///
582584
/// # Examples
583585
///
584586
/// ```
@@ -590,6 +592,8 @@ impl<'a> AsRef<OsStr> for Component<'a> {
590592
/// println!("{:?}", component);
591593
/// }
592594
/// ```
595+
///
596+
/// [`path::Path::components`]: struct.Path.html#method.components
593597
#[derive(Clone)]
594598
#[stable(feature = "rust1", since = "1.0.0")]
595599
pub struct Components<'a> {

0 commit comments

Comments
 (0)