Convert comment to rustdoc in placement.rs (#6665)

This commit is contained in:
Charlie Marsh 2023-08-18 00:11:38 -04:00 committed by GitHub
parent 1811312722
commit 8228429a70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -227,6 +227,7 @@ fn handle_enclosed_comment<'a>(
}
}
/// Handle an end-of-line comment around a body.
fn handle_end_of_line_comment_around_body<'a>(
comment: DecoratedComment<'a>,
locator: &Locator,
@ -1326,22 +1327,22 @@ fn handle_with_comment<'a>(
}
}
// Handle comments inside comprehensions, e.g.
//
// ```python
// [
// a
// for # dangling on the comprehension
// b
// # dangling on the comprehension
// in # dangling on comprehension.iter
// # leading on the iter
// c
// # dangling on comprehension.if.n
// if # dangling on comprehension.if.n
// d
// ]
// ```
/// Handle comments inside comprehensions, e.g.
///
/// ```python
/// [
/// a
/// for # dangling on the comprehension
/// b
/// # dangling on the comprehension
/// in # dangling on comprehension.iter
/// # leading on the iter
/// c
/// # dangling on comprehension.if.n
/// if # dangling on comprehension.if.n
/// d
/// ]
/// ```
fn handle_comprehension_comment<'a>(
comment: DecoratedComment<'a>,
comprehension: &'a Comprehension,