Rollup merge of #129718 - lolbinarycat:remove_dir-docs, r=Noratrieb · qinheping/verify-rust-std@4969ea8 (original) (raw)
`@@ -1991,6 +1991,11 @@ impl AsInner<fs_imp::DirEntry> for DirEntry {
`
1991
1991
`/// * The file doesn't exist.
`
1992
1992
`/// * The user lacks permissions to remove the file.
`
1993
1993
`///
`
``
1994
`` +
/// This function will only ever return an error of kind NotFound
if the given
``
``
1995
`+
/// path does not exist. Note that the inverse is not true,
`
``
1996
`+
/// ie. if a path does not exist, its removal may fail for a number of reasons,
`
``
1997
`+
/// such as insufficient permissions.
`
``
1998
`+
///
`
1994
1999
`/// # Examples
`
1995
2000
`///
`
1996
2001
```` /// ```no_run
`@@ -2448,6 +2453,11 @@ pub fn create_dir_all<P: AsRef<Path>>(path: P) -> io::Result<()> {
`
`2448`
`2453`
`` /// * The user lacks permissions to remove the directory at the provided `path`.
``
`2449`
`2454`
`/// * The directory isn't empty.
`
`2450`
`2455`
`///
`
``
`2456`
`` +
/// This function will only ever return an error of kind `NotFound` if the given
``
``
`2457`
`+
/// path does not exist. Note that the inverse is not true,
`
``
`2458`
`+
/// ie. if a path does not exist, its removal may fail for a number of reasons,
`
``
`2459`
`+
/// such as insufficient permissions.
`
``
`2460`
`+
///
`
`2451`
`2461`
`/// # Examples
`
`2452`
`2462`
`///
`
`2453`
`2463`
```` /// ```no_run