提交 f300fafc 编写于 作者: C Corey Farwell

Indicate how the `std::path::Components` struct is created.

上级 35004b42
......@@ -579,6 +579,8 @@ fn as_ref(&self) -> &OsStr {
/// 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 @@ fn as_ref(&self) -> &OsStr {
/// println!("{:?}", component);
/// }
/// ```
///
/// [`path::Path::components`]: struct.Path.html#method.components
#[derive(Clone)]
#[stable(feature = "rust1", since = "1.0.0")]
pub struct Components<'a> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册