Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
fix(rome_formatter): fix format range
Browse files Browse the repository at this point in the history
  • Loading branch information
denbezrukov committed Mar 12, 2023
1 parent b9eae76 commit 8407dd9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/rome_formatter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1192,12 +1192,12 @@ pub fn format_range<Language: FormatLanguage>(
// e.g
// ...
// SourceMarker {
// source: 94,
// dest: 99, <----- both markers have the same dest.
// source: 94, <----- but we need to use this source position to get correct substring in the source
// dest: 99,
// },
// SourceMarker {
// source: 96, <----- but we need to use this source position to get correct substring in the source
// dest: 99,
// source: 96,
// dest: 99, <----- both markers have the same dest.
// },
// ...
Some(prev_marker)
Expand Down

0 comments on commit 8407dd9

Please sign in to comment.