Skip to content

Commit fe03cf6

Browse files
committed
Rollup merge of rust-lang#58496 - nathan:doc-std-path-pathbuf-pop, r=frewsxcv
Fix documentation for std::path::PathBuf::pop Closes rust-lang#58474.
2 parents d0d10d1 + 4ad8770 commit fe03cf6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libstd/path.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1230,12 +1230,11 @@ impl PathBuf {
12301230

12311231
/// Truncates `self` to [`self.parent`].
12321232
///
1233-
/// Returns `false` and does nothing if [`self.file_name`] is [`None`].
1233+
/// Returns `false` and does nothing if [`self.parent`] is [`None`].
12341234
/// Otherwise, returns `true`.
12351235
///
12361236
/// [`None`]: ../../std/option/enum.Option.html#variant.None
12371237
/// [`self.parent`]: struct.PathBuf.html#method.parent
1238-
/// [`self.file_name`]: struct.PathBuf.html#method.file_name
12391238
///
12401239
/// # Examples
12411240
///

0 commit comments

Comments
 (0)