Skip to content

Commit e0b033e

Browse files
committed
doc: fix broken link for crate::os::linux::raw::stat
Fixing: Documenting std v0.0.0 (/checkout/library/std) error: `self::os::linux::raw::stat` is both a struct and a function --> library/std/src/os/linux/fs.rs:23:19 | 23 | /// [`stat`]: crate::os::linux::raw::stat | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ambiguous link | = note: `-D broken-intra-doc-links` implied by `-D warnings` help: to link to the struct, prefix with `struct@` | 23 | /// [`stat`]: struct@self::os::linux::raw::stat | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: to link to the function, add parentheses | 23 | /// [`stat`]: self::os::linux::raw::stat() | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to previous error error: could not document `std` Signed-off-by: Tom Eccles <[email protected]>
1 parent a4a0342 commit e0b033e

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/os/linux

1 file changed

+1
-1
lines changed

library/std/src/os/linux/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub trait MetadataExt {
2020
/// Unix platforms. The `os::unix::fs::MetadataExt` trait contains the
2121
/// cross-Unix abstractions contained within the raw stat.
2222
///
23-
/// [`stat`]: crate::os::linux::raw::stat
23+
/// [`stat`]: struct@crate::os::linux::raw::stat
2424
///
2525
/// # Examples
2626
///

0 commit comments

Comments
 (0)