mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 22:01:47 +00:00
Fix dangling module comments (#7456)
This commit is contained in:
parent
959338d39d
commit
26ae0a6e8d
8 changed files with 58 additions and 32 deletions
|
@ -440,7 +440,7 @@ pub type FormatResult<F> = Result<F, FormatError>;
|
|||
/// let paragraph = Paragraph(String::from("test"));
|
||||
/// let formatted = format!(SimpleFormatContext::default(), [paragraph])?;
|
||||
///
|
||||
/// assert_eq!("test\n", formatted.print()?.as_code());
|
||||
/// assert_eq!("\ntest\n", formatted.print()?.as_code());
|
||||
/// # Ok(())
|
||||
/// # }
|
||||
/// ```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue