mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 22:31:47 +00:00
Update dynamic_text
builder doc comment (#6978)
This commit is contained in:
parent
b7634b6ede
commit
924f10186f
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue