Skip to content

Commit af29620

Browse files
Fix links
1 parent 2453946 commit af29620

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/librustdoc/passes/collect_intra_doc_links.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ fn handle_variant(
10691069
};
10701070
let parent_def = Res::Def(DefKind::Enum, parent);
10711071
let variant = cx.tcx.expect_variant_res(res);
1072-
Ok((parent_def, Some(format!("{}.v", variant.ident.name))))
1072+
Ok((parent_def, Some(format!("variant.{}", variant.ident.name))))
10731073
}
10741074

10751075
const PRIMITIVES: &[(&str, Res)] = &[

src/libstd/sys/unix/ext/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ pub trait FileExt {
133133
/// Note that similar to [`File::write`], it is not an error to return a
134134
/// short write.
135135
///
136-
/// [`File::write`]: ../../../../std/fs/struct.File.html#write.v
136+
/// [`File::write`]: ../../../../std/fs/struct.File.html#method.write
137137
///
138138
/// # Examples
139139
///

src/libstd/sys/vxworks/ext/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ pub trait FileExt {
132132
/// Note that similar to [`File::write`], it is not an error to return a
133133
/// short write.
134134
///
135-
/// [`File::write`]: ../../../../std/fs/struct.File.html#write.v
135+
/// [`File::write`]: ../../../../std/fs/struct.File.html#method.write
136136
///
137137
/// # Examples
138138
///

0 commit comments

Comments
 (0)