add missing docs for MetadataExt#45470
Conversation
src/libstd/sys/unix/ext/fs.rs
Outdated
src/libstd/sys/unix/ext/fs.rs
Outdated
There was a problem hiding this comment.
This is in the unix module, not linux, so it would be more accurate to use cfg(unix) here. (I would prefer not having this wrapper here at all, but if you're going to keep it then that's my suggestion.)
src/libstd/sys/unix/ext/fs.rs
Outdated
There was a problem hiding this comment.
Pretty sure these should all be 0o200 etc? I didn't think rust had zero-prefix octal notation.
There was a problem hiding this comment.
Oh damn you're right! Bad assumption. :s
73e00f1 to
61cd798
Compare
|
Updated. |
QuietMisdreavus
left a comment
There was a problem hiding this comment.
Sorry for letting this get stale! I have a couple more nits. You can take them or leave them.
src/libstd/sys/unix/ext/fs.rs
Outdated
There was a problem hiding this comment.
Maybe "the number of blocks allocated to the file, in 512-byte units"? (This is what man 2 stat says on my system. It also has an additional "This may be smaller than st_size/512 when the file has holes," which may also be worth including.)
src/libstd/sys/unix/ext/fs.rs
Outdated
There was a problem hiding this comment.
I feel like it would be better to grab the trait in its actual home of std::os::unix::fs::MetadataExt, rather than pulling from the unix prelude? Since that's the page that these examples will be living on. >_>
61cd798 to
af1e4f6
Compare
|
Updated. |
|
@bors r+ rollup Thanks! |
|
📌 Commit af1e4f6 has been approved by |
…=QuietMisdreavus add missing docs for MetadataExt r? @rust-lang/docs
…=QuietMisdreavus add missing docs for MetadataExt r? @rust-lang/docs
r? @rust-lang/docs