We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c12eb1d + f300faf commit 15e8a67Copy full SHA for 15e8a67
src/libstd/path.rs
@@ -579,6 +579,8 @@ impl<'a> AsRef<OsStr> for Component<'a> {
579
/// See the module documentation for an in-depth explanation of components and
580
/// their role in the API.
581
///
582
+/// This `struct` is created by the [`path::Path::components`] method.
583
+///
584
/// # Examples
585
586
/// ```
@@ -590,6 +592,8 @@ impl<'a> AsRef<OsStr> for Component<'a> {
590
592
/// println!("{:?}", component);
591
593
/// }
594
595
596
+/// [`path::Path::components`]: struct.Path.html#method.components
597
#[derive(Clone)]
598
#[stable(feature = "rust1", since = "1.0.0")]
599
pub struct Components<'a> {
0 commit comments