We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d0d10d1 + 4ad8770 commit fe03cf6Copy full SHA for fe03cf6
src/libstd/path.rs
@@ -1230,12 +1230,11 @@ impl PathBuf {
1230
1231
/// Truncates `self` to [`self.parent`].
1232
///
1233
- /// Returns `false` and does nothing if [`self.file_name`] is [`None`].
+ /// Returns `false` and does nothing if [`self.parent`] is [`None`].
1234
/// Otherwise, returns `true`.
1235
1236
/// [`None`]: ../../std/option/enum.Option.html#variant.None
1237
/// [`self.parent`]: struct.PathBuf.html#method.parent
1238
- /// [`self.file_name`]: struct.PathBuf.html#method.file_name
1239
1240
/// # Examples
1241
0 commit comments