Skip to content

Commit

Permalink
Fix documentation for AssetReader::is_directory function (#11538)
Browse files Browse the repository at this point in the history
# Objective

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

---------

Co-authored-by: Kanabenki <[email protected]>
  • Loading branch information
esensar and Kanabenki authored Jan 26, 2024
1 parent fb367da commit 10f9595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_asset/src/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ pub trait AssetReader: Send + Sync + 'static {
&'a self,
path: &'a Path,
) -> 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>(
&'a self,
path: &'a Path,
Expand Down

0 comments on commit 10f9595

Please sign in to comment.