Skip to content

Commit

Permalink
Calling file_type may fail
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Apr 14, 2015
1 parent 6feacbb commit 646d41c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text/0000-io-fs-2.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ impl DirEntry {
/// On some platforms this may not require reading the metadata of the
/// underlying file from the filesystem, but on other platforms it may be
/// required to do so.
pub fn file_type(&self) -> FileType;
pub fn file_type(&self) -> io::Result<FileType>;

/// Returns the file name for this directory entry.
pub fn file_name(&self) -> OsString;
Expand Down

0 comments on commit 646d41c

Please sign in to comment.