doc: fix typo
This commit is contained in:
parent
9d009c0ec1
commit
c6b8deef7d
1 changed files with 1 additions and 1 deletions
|
|
@ -1292,7 +1292,7 @@ impl Path {
|
|||
/// use std::path::Path;
|
||||
///
|
||||
/// let path_str = Path::new("foo.txt").to_str();
|
||||
//// assert_eq!(path_str, Some("foo.txt"));
|
||||
/// assert_eq!(path_str, Some("foo.txt"));
|
||||
/// ```
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub fn to_str(&self) -> Option<&str> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue