mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 21:15:18 +03:00
doc: fix typo
This commit is contained in:
+1
-1
@@ -1292,7 +1292,7 @@ pub fn as_os_str(&self) -> &OsStr {
|
||||
/// 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> {
|
||||
|
||||
Reference in New Issue
Block a user