diff options
| author | bors <bors@rust-lang.org> | 2016-06-25 22:06:35 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-06-25 22:06:35 -0700 |
| commit | 15e8a67c47dc624cc7de67dfa8020a1daefc5067 (patch) | |
| tree | 4d62ea83d8cc8888e36f6dbda5d075642edfeb4c | |
| parent | c12eb1d7a2b38eb3099496419ab1685857ccb6c3 (diff) | |
| parent | f300fafccd4c6e1c83753dc283975ccda086ba1f (diff) | |
| download | rust-15e8a67c47dc624cc7de67dfa8020a1daefc5067.tar.gz rust-15e8a67c47dc624cc7de67dfa8020a1daefc5067.zip | |
Auto merge of #34469 - frewsxcv:path-components, r=GuillaumeGomez
Indicate how the `std::path::Components` struct is created. None
| -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> { |
