about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-06-25 22:06:35 -0700
committerGitHub <noreply@github.com>2016-06-25 22:06:35 -0700
commit15e8a67c47dc624cc7de67dfa8020a1daefc5067 (patch)
tree4d62ea83d8cc8888e36f6dbda5d075642edfeb4c
parentc12eb1d7a2b38eb3099496419ab1685857ccb6c3 (diff)
parentf300fafccd4c6e1c83753dc283975ccda086ba1f (diff)
downloadrust-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.rs4
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> {