-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Add missing links and examples #45582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
looks like you have some broken links |
Indeed. I'll fix this as soon as I can. |
/// let file_type = meta.file_type(); | ||
/// assert!(file_type.is_block_device()); | ||
/// # Ok(()) | ||
/// # } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing closing ```
for all of these examples.
6ca517d
to
6c55050
Compare
Added missing |
src/libstd/sys/unix/ext/fs.rs
Outdated
/// Unix-specific extensions to `File` | ||
/// Unix-specific extensions to [`File`]. | ||
/// | ||
/// [`File`]: ../../../std/fs/struct.File.html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are still broken links (not enough ../
)
[01:12:39] std/os/unix/fs/trait.DirEntryExt.html:54: broken link - std/std/fs/struct.DirEntry.html
[01:12:39] std/os/unix/fs/index.html:59: broken link - std/std/fs/struct.DirBuilder.html
[01:12:39] std/os/unix/fs/index.html:66: broken link - std/std/fs/struct.DirEntry.html
[01:12:39] std/os/unix/fs/index.html:73: broken link - std/std/fs/struct.File.html
[01:12:39] std/os/unix/fs/trait.FileExt.html:55: broken link - std/std/fs/struct.File.html
[01:12:39] std/os/unix/fs/trait.DirBuilderExt.html:54: broken link - std/std/fs/struct.DirBuilder.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot a ..
once again...
6c55050
to
b678e59
Compare
Fixed. |
src/libstd/sys/unix/ext/fs.rs
Outdated
/// | ||
/// ``` | ||
/// use std::fs; | ||
/// use std::os::unix::prelude::FileTypeExt; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you import the trait from std::os::unix::fs::FileTypeExt
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same goes for the other imports in these examples
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me with @QuietMisdreavus's comment (and maybe mine) addressed. nice work! ✨
src/libstd/sys/unix/ext/fs.rs
Outdated
@@ -269,19 +271,79 @@ impl MetadataExt for fs::Metadata { | |||
fn blocks(&self) -> u64 { self.st_blocks() } | |||
} | |||
|
|||
/// Add special unix types (block/char device, fifo and socket) | |||
/// Add special unix types (block/char device, fifo and socket). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onder if this might be better worded as:
/// Add support for special unix types (block/char device, fifo and socket).
src/libstd/sys/unix/ext/fs.rs
Outdated
/// | ||
/// ``` | ||
/// use std::fs; | ||
/// use std::os::unix::prelude::FileTypeExt; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same goes for the other imports in these examples
b678e59
to
cef0573
Compare
@bors: r=frewsxcv rollup |
📌 Commit cef0573 has been approved by |
…ks, r=frewsxcv Add missing links and examples r? @rust-lang/docs
r? @rust-lang/docs