Skip to content

Commit bc9e7fc

Browse files
author
Ype Kingma
committed
Improve example text
1 parent c249247 commit bc9e7fc

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

clippy_lints/src/lifetimes_bound_nested_ref.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ declare_clippy_lint! {
4848
/// ### Known problems
4949
/// It is not known whether this covers all cases in issue 25860.
5050
///
51-
/// ### Example
52-
/// The `val_a` argument implies a lifetimes bound:
51+
/// ### Example, the `val_a` argument implies a lifetimes bound:
5352
/// ```no_run
5453
/// pub const fn lifetime_translator<'a, 'b, T>(val_a: &'a &'b (), val_b: &'b T) -> &'a T {...}
5554
/// ```
@@ -72,12 +71,10 @@ declare_clippy_lint! {
7271
/// Such generic lifetime bounds are redundant.
7372
///
7473
/// ### Known problems
75-
/// Removing redundant lifetime bounds
76-
/// should only be done after the compiler
74+
/// Removing redundant lifetime bounds should only be done after the compiler
7775
/// has been fixed to deal correctly with implied lifetime bounds.
7876
///
79-
/// ### Example
80-
/// The `val_a` argument implies a lifetimes bound:
77+
/// ### Example, the `val_a` argument implies a lifetimes bound:
8178
/// ```no_run
8279
/// pub const fn lifetime_translator<'a, 'b: 'a, T>(val_a: &'a &'b (), val_b: &'b T) -> &'a T {...}
8380
/// ```

0 commit comments

Comments
 (0)