Open gvozdvmozgu opened 1 month ago
When formatting Swift code using swift-format, comments from one line are improperly duplicated to the following lines.
swift-format
Steps to Reproduce:
Create a Swift file (test.swift) with the following content:
test.swift
1 // test +1
Run the following command to format the code:
swift run swift-format test.swift
Check the contents of test.swift after formatting:
1 // test +1 // test
Synced to Apple’s issue tracker as rdar://137698840
When formatting Swift code using
swift-format
, comments from one line are improperly duplicated to the following lines.Steps to Reproduce:
Create a Swift file (
test.swift
) with the following content:Run the following command to format the code:
Check the contents of
test.swift
after formatting: