提交 ba4d55d1 编写于 作者: N Nick Hamann

Separate code into two code blocks

上级 e178495a
...@@ -1248,12 +1248,13 @@ fn as_u8_slice(&self) -> &[u8] { ...@@ -1248,12 +1248,13 @@ fn as_u8_slice(&self) -> &[u8] {
/// use std::path::Path; /// use std::path::Path;
/// ///
/// Path::new("foo.txt"); /// Path::new("foo.txt");
/// ```
///
/// You can create `Path`s from `String`s, or even other `Path`s:
/// ///
/// // Strings work too: /// ```
/// let s = String::from("bar.txt"); /// let s = String::from("bar.txt");
/// let p = Path::new(&s); /// let p = Path::new(&s);
///
/// // As do other `Path`s:
/// Path::new(&p); /// Path::new(&p);
/// ``` /// ```
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册