-
Notifications
You must be signed in to change notification settings - Fork 909
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not wrap reference-style doc links
Prevents wrap_comments from incorrectly wrapping reference-style doc links.
- Loading branch information
1 parent
826eba8
commit 4389a4c
Showing
2 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// rustfmt-wrap_comments: true | ||
|
||
pub mod a_long_name { | ||
pub mod b_long_name { | ||
pub mod c_long_name { | ||
pub mod d_long_name { | ||
pub mod e_long_name { | ||
pub struct Bananas; | ||
impl Bananas { | ||
pub fn fantastic() {} | ||
} | ||
|
||
pub mod f_long_name { | ||
pub struct Apples; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
/// Check out [my other struct] ([`Bananas`]) and [the method it has]. | ||
/// | ||
/// [my other struct]: a_long_name::b_long_name::c_long_name::d_long_name::e_long_name::f_long_name::Apples | ||
/// [`Bananas`]: a_long_name::b_long_name::c_long_name::d_long_name::e_long_name::Bananas::fantastic() | ||
/// [the method it has]: a_long_name::b_long_name::c_long_name::d_long_name::e_long_name::Bananas::fantastic() | ||
pub struct A; |