Skip to content

Commit

Permalink
Code review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser committed Jul 11, 2023
1 parent 5b4b8aa commit ff18d52
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions crates/ruff_formatter/src/builders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1431,7 +1431,7 @@ impl<Context> std::fmt::Debug for Group<'_, Context> {
///
/// # fn main() -> FormatResult<()> {
/// use ruff_formatter::Formatted;
/// let content = format_with(|f| { ///
/// let content = format_with(|f| {
/// let parentheses_id = f.group_id("parentheses");
/// group(&format_args![
/// if_group_breaks(&text("(")),
Expand Down Expand Up @@ -2006,12 +2006,7 @@ impl<Context> std::fmt::Debug for IndentIfGroupBreaks<'_, Context> {
/// ])
/// });
///
/// let formatted = format!(SimpleFormatContext::new(SimpleFormatOptions {
/// line_width: LineWidth::try_from(16).unwrap(),
/// ..SimpleFormatOptions::default()
/// }),
/// [content]
/// )?;
/// let formatted = format!(SimpleFormatContext::default(), [content])?;
///
/// assert_eq!(
/// "a + [\n\ta, # comment\n\tb\n]",
Expand Down

0 comments on commit ff18d52

Please sign in to comment.