diff options
| -rw-r--r-- | src/libstd/path.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs index a19d51fac35..8dc46239f3d 100644 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -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 /// /// ``` @@ -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> { |
