Fix documentation for AssetReader::is_directory function (#11538)

# Objective

- Fix documentation for `AssetReader::is_directory` (it is currently
exactly the same as docs for `read_directory`)

---------

Co-authored-by: Kanabenki <lucien.menassol@gmail.com>
This commit is contained in:
Ensar Sarajčić 2024-01-26 14:55:36 +01:00 committed by GitHub
parent fb367dac72
commit 10f95956a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -78,7 +78,7 @@ pub trait AssetReader: Send + Sync + 'static {
&'a self, &'a self,
path: &'a Path, path: &'a Path,
) -> BoxedFuture<'a, Result<Box<PathStream>, AssetReaderError>>; ) -> BoxedFuture<'a, Result<Box<PathStream>, AssetReaderError>>;
/// Returns an iterator of directory entry names at the provided path. /// Returns true if the provided path points to a directory.
fn is_directory<'a>( fn is_directory<'a>(
&'a self, &'a self,
path: &'a Path, path: &'a Path,