Skip to content

Commit b99c5cf

Browse files
committed
doc: we got coercion going on here, so no need to be this explicit
1 parent 689c6c4 commit b99c5cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/path.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1169,9 +1169,9 @@ impl PathBuf {
11691169
/// let mut p = PathBuf::from("/test/test.rs");
11701170
///
11711171
/// p.pop();
1172-
/// assert_eq!(Path::new("/test"), p.as_path());
1172+
/// assert_eq!(Path::new("/test"), p);
11731173
/// p.pop();
1174-
/// assert_eq!(Path::new("/"), p.as_path());
1174+
/// assert_eq!(Path::new("/"), p);
11751175
/// ```
11761176
#[stable(feature = "rust1", since = "1.0.0")]
11771177
pub fn pop(&mut self) -> bool {

0 commit comments

Comments
 (0)