Skip to content

Commit bf77fed

Browse files
Fix and format test
1 parent f5494e1 commit bf77fed

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

tests/rustdoc/intra-doc/issue-108459.rs

+8-6
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,30 @@ pub mod char {}
88
/// See [S] and [`S`]
99
pub struct MyStruct1;
1010

11-
// Ensure that link texts are replaced correctly even if there are multiple links with the same target but different text
11+
// Ensure that link texts are replaced correctly even if there are multiple links with
12+
// the same target but different text
1213

1314
/// See also [crate::char] and [mod@char] and [prim@char]
14-
// @has prim_precedence/struct.MyStruct2.html '//*[@href="char/index.html"]' 'crate::char'
15+
// @has issue-108459/struct.MyStruct2.html '//*[@href="char/index.html"]' 'crate::char'
1516
// @has - '//*[@href="char/index.html"]' 'char'
1617
// @has - '//*[@href="{{channel}}/std/primitive.char.html"]' 'char'
1718
pub struct MyStruct2;
1819

1920
/// See also [mod@char] and [prim@char] and [crate::char]
20-
// @has prim_precedence/struct.MyStruct3.html '//*[@href="char/index.html"]' 'crate::char'
21+
// @has issue-108459/struct.MyStruct3.html '//*[@href="char/index.html"]' 'crate::char'
2122
// @has - '//*[@href="char/index.html"]' 'char'
2223
// @has - '//*[@href="{{channel}}/std/primitive.char.html"]' 'char'
2324
pub struct MyStruct3;
2425

25-
// Ensure that links are correct even if there are multiple links with the same text but different targets
26+
// Ensure that links are correct even if there are multiple links with the same text but
27+
// different targets
2628

2729
/// See also [char][mod@char] and [char][prim@char]
28-
// @has prim_precedence/struct.MyStruct4.html '//*[@href="char/index.html"]' 'char'
30+
// @has issue-108459/struct.MyStruct4.html '//*[@href="char/index.html"]' 'char'
2931
// @has - '//*[@href="{{channel}}/std/primitive.char.html"]' 'char'
3032
pub struct MyStruct4;
3133

3234
/// See also [char][prim@char] and [char][crate::char]
33-
// @has prim_precedence/struct.MyStruct5.html '//*[@href="char/index.html"]' 'char'
35+
// @has issue-108459/struct.MyStruct5.html '//*[@href="char/index.html"]' 'char'
3436
// @has - '//*[@href="{{channel}}/std/primitive.char.html"]' 'char'
3537
pub struct MyStruct5;

0 commit comments

Comments
 (0)