Skip to content

Commit

Permalink
Resolve empty_line_after_doc_comments clippy lint in lexical
Browse files Browse the repository at this point in the history
    warning: empty line after doc comment
       --> tests/../src/lexical/math.rs:277:5
        |
    277 | /     /// ADDITION
    278 | |
        | |_
    ...
    284 |       pub fn iadd_impl(x: &mut Vec<Limb>, y: Limb, xstart: usize) {
        |       ----------------------------------------------------------- the comment documents this function
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments
        = note: `-W clippy::empty-line-after-doc-comments` implied by `-W clippy::all`
        = help: to override `-W clippy::all` add `#[allow(clippy::empty_line_after_doc_comments)]`
        = help: if the empty line is unintentional remove it
    help: if the documentation should include the empty line include it in the comment
        |
    278 |     ///
        |
  • Loading branch information
dtolnay committed Sep 27, 2024
1 parent 1faf3a1 commit 309cfc9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lexical/math.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,7 @@ mod scalar {
mod small {
use super::*;

// MULTIPLICATIION

/// ADDITION
// ADDITION

/// Implied AddAssign implementation for adding a small integer to bigint.
///
Expand Down

0 comments on commit 309cfc9

Please sign in to comment.