Skip to content

Commit

Permalink
Update dynamic_text builder doc comment (#6978)
Browse files Browse the repository at this point in the history
  • Loading branch information
cnpryer authored Aug 29, 2023
1 parent b7634b6 commit 924f101
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/ruff_formatter/src/builders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,8 @@ impl<Context> Format<Context> for SourcePosition {
}
}

/// Creates a text from a dynamic string with its optional start-position in the source document
/// Creates a text from a dynamic string with its optional start-position in the source document.
/// This is done by allocating a new string internally.
pub fn dynamic_text(text: &str, position: Option<TextSize>) -> DynamicText {
debug_assert_no_newlines(text);

Expand Down

0 comments on commit 924f101

Please sign in to comment.