Skip to content

Commit 430681f

Browse files
committed
Document that Metadata::len() returning 0 means an unknown size.
1 parent e90bbca commit 430681f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libstd/fs.rs

+2
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,8 @@ impl Metadata {
799799

800800
/// Returns the size of the file, in bytes, this metadata is for.
801801
///
802+
/// As a special case, a size of `0` indicates that the size is unknown.
803+
///
802804
/// # Examples
803805
///
804806
/// ```

0 commit comments

Comments
 (0)